Hi,

My scenario is a little different than what you have described. I don't have 
images on buttons. I have my custom window (which is a black colored image) and 
on it are the static texts. These texts are displaying blurred. Although i have 
not been able to figure out why is this happening, but i got a work around by 
using a different color shade of window image. So my problem is solved, but if 
anyone could explain the reason for that, it would be nice. It would come in 
handy for future use. 


Thank you





--- On Sat, 11/29/08, Richard Somers <[EMAIL PROTECTED]> wrote:

> From: Richard Somers <[EMAIL PROTECTED]>
> Subject: Re: Text blurred in application
> To: cocoa-dev@lists.apple.com
> Date: Saturday, November 29, 2008, 8:57 AM
> I just discovered part of my problem. The pdf image was
> being scaled down slightly even though there was plenty of
> room for it inside the NSButton. The default scaling is
> "Proportionally Down". Change this to
> "None" and the image now is always sharp, at least
> for a User Interface Resolution of 1.0.
> 
> Change the User Interface Resolution to 1.25 or 1.5 and the
> pdf image is ok but not great. This is apparently because
> "A shape is scan-converted by painting any pixel whose
> square region intersects the shape, no matter how small the
> intersection is." according to the "Scan
> Conversion Rules" in the pdf standard. I think this is
> why it looks less sharp at these resolutions. Note that
> fonts get special treatment and will render more
> "precisely" because they are hinted.
> 
> Anyway, perhaps this is why the final image used for many
> Apple widgets are bitmapped tiff files and not vector pdf.
> You can tweak each and every pixel in a tiff file if you
> want to. For me I just wanted to make single vector image
> and be done with it.
> 
> On Nov 29, 2008, at 7:33AM, Richard Somers wrote:
> 
> > The pdf canvas size is 25 points x 25 points and
> displayed full size in the button. It contains only vector
> graphics.
> > 
> > I thought pdf would be the best thing for the simple
> graphics but it is hard to get it pixel perfect. Many of the
> paths have pixel exact boundaries within the graphics
> application. But when these are used in Interface Builder
> for a NSButton image the pdf output is inconsistent. It
> seems to have a mind of its own.
> > 
> > On Nov 29, 2008, at 4:32AM, Benjamin Dobson wrote:
> > 
> >> Make sure the PDF is not larger than the button
> and that it does not contain bitmaps.
> > 
> 
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to
> the list.
> Contact the moderators at
> cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/adilsaleem01%40yahoo.com
> 
> This email sent to [EMAIL PROTECTED]


      
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to