I must be doing something wrong. I have tried rendering an image to a PDF to both a pdfContext in iOS and a PDF using PDFSharp. When I do it, it's blurry compared to when I open it up in Photoshop or Microsoft's picture preview. So maybe I don't understand what is going on with the image itself. Here is what I know:
Image size is 90 x 20 (w x h). The resolution is 264 ppi.
To draw it in PDFSharp, I do:
XImage image = XImage.FromGdiPlusImage(Properties.Resources.logo);
gphx.DrawImage(image, leftStartDefault, 50, image.PointWidth, image.PointHeight);
I have also tried image.PixelWidth, image.PixelHeight in the above code. Both produce the same blurry result.
In iOS, I do
UIImage *logo = [UIImage imageNamed:@"logo.png"];
[logo drawInRect:CGRectMake(self.frame.size.width - 90 - 60, 20, 90, 20)];
Both produce blurry results. I'm not sure why. I don't know if it's something I am missing with how to choose the size to draw. If I need to ask for a different resolution/size image from our graphics artist, or if it's the way I make the drawing call. If I draw the image at half the size, it is clearer.
e.g.
gphx.DrawImage(image, leftStartDefault, 50, 45, 10);
Any thoughts? thanks.