Re: PDF image template comes out too small

2016-06-02 Thread David Catmull
OK, if I open the PDFs in Preview, it says that the icons are 8x8 pts instead of 16x16. Exporting at a different DPI in Designer doesn't change this, but if I export from a document that itself has a different DPI (72 vs 144), then that can fix it. So I guess I have at thing or two to learn about w

Re: PDF image template comes out too small

2016-06-01 Thread Quincey Morris
On Jun 1, 2016, at 10:55 , David Catmull wrote: > > On OS X. I have an NSSegmentedControl in my xib, with my template images > assigned to the segments by specifying the image names. It’s a bit hard to tell what’s going on if it’s all done in IB. You might consider adding code to examine the i

Re: PDF image template comes out too small

2016-06-01 Thread David Catmull
On OS X. I have an NSSegmentedControl in my xib, with my template images assigned to the segments by specifying the image names. On Wed, Jun 1, 2016 at 10:36 AM, Quincey Morris < quinceymor...@rivergatesoftware.com> wrote: > On Jun 1, 2016, at 07:51 , David Catmull wrote: > > > I'm trying to use

Re: PDF image template comes out too small

2016-06-01 Thread Quincey Morris
On Jun 1, 2016, at 07:51 , David Catmull wrote: > > I'm trying to use PDF files as image templates for my segment controls, but > they come out too small. What platform? What does “use” mean? That is, are you creating NSImage/UIImage objects, drawing them into bitmaps, using CGPDF… functions, e

Re: PDF image template comes out too small

2016-06-01 Thread Aandi Inston
I've never used this API but perhaps the problem is that you are thinking of PDF pages as having a size in pixels. They absolutely do not, because they are a rich collection of text, multiresolution images and vector. The fact that your PDF pages might contain only a single resolution image is of n

PDF image template comes out too small

2016-06-01 Thread David Catmull
I'm trying to use PDF files as image templates for my segment controls, but they come out too small. I created them using Affinity Designer, adding the "Template" suffix. They end up getting drawn at half size in my controls. I tried changing the export DPI from the default (~144) to 72, but it ha