Faking Subpixel Antialiasing on Text with Core Animation

If you’re using a transparent sheet, you don’t know in advance what the pixels below it will be. They may change. Remember that you have a single alpha channel for all three colors: if you make it transparent, you won’t see any subpixel effect, but if you make it opaque, all three subelements are going … Read more

Disable Anti-Aliasing Fonts in Xcode 4.4 in Mountain Lion

From the Release Notes: https://developer.apple.com/library/content/releasenotes/DeveloperTools/RN-Xcode/Chapters/Introduction.html#//apple_ref/doc/uid/TP40001051-CH1-SW680 Text and font rendering on OS X v10.8 is optimized for Retina display. On a non–Retina display running OS X v.10.8, some font configurations can appear blurry in Xcode. 11486875 Switch back to non–Retina display optimized text and font appearance in Xcode by enterin this command in Terminal: defaults write … Read more

Smoothing image edges in WPF

You need to set the Image’s render options. Try setting the style of the Image to: <Window.Resources> <Style TargetType=”Image”> <Setter Property=”Height” Value=”64″ /> <Setter Property=”Width” Value=”64″ /> <Setter Property=”RenderOptions.BitmapScalingMode” Value=”HighQuality” /> </Style> </Window.Resources> To use the image, simply call as before: <Image Source=”/Images/MyImage.png” /> Or, to use the RenderOptions on a single image: <Image RenderOptions.BitmapScalingMode=”HighQuality” … Read more

OpenGL ES iPhone – drawing anti aliased lines

One can achieve the effect of anti aliasing very cheaply using vertices with opacity 0. Here’s an image example to explain: Comparison with AA: You can read a paper about this here: http://research.microsoft.com/en-us/um/people/hoppe/overdraw.pdf You could do something along this way: // Colors is a pointer to unsigned bytes (4 per color). // Should alternate in … Read more

Does the Retina display eliminate the need for anti-aliasing?

There’s no question at all – you still need to do antialiasing mathematics, because of the complexity of curves, second order curves, intersecting curves, and different types of joins. (Note too that, very simply, since this question appeared two years ago. Retina displays are now ubiquitous and – indeed – antialiasing is, in fact, done … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)