anti-aliasing

How can I turn off anti-aliasing for one specific JLabel?

How can I turn off anti-aliasing for one specific JLabel? It uses a very small font which might look better without anti-aliasing. If important, I'm using Java 1.5 on Mac OS X. ...

Anti-aliasing artifacts in WPF

I have a bizarre rendering issue when I'm trying to use anti-aliased graphics in WPF. Here's a simplified version. If I use the following XAML <Window x:Class="RenderingBug.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Window1" Width="300" Heigh...

How to: Font smoothing test

The real question is this: I am trying to figure out the effect of font smoothing in my web page. On my LCD panel the text looks the same with font smoothing on/off. Are there are any particular fonts that need smoothing. Can you suggest any example font best suited for font-smoothing (i.e. it gives good result on applying smoothing)....

Anti-aliasing not working when resizing a UIWebView

I'd like to add a Web View to my app at 60% scale (like seen in Safari in the browse other windows view): Notice how the content looks nice and Aliased! If I try and add the same Web view to my app: NSURL *url = [NSURL URLWithString:@"http://www.google.co.uk?q=hello"]; NSURLRequest *request = [NSURLRequest requestWithURL:url]; UIWe...

Anti-aliasing: Preferred ways of determing maximum frequency?

I've been reading up a bit on anti-aliasing and it seems to make sense, but there is one thing I'm not too sure of. How exactly do you find the maximum frequency of a signal (in the context of graphics). I realize there's more than one case so I assume there is more than one answer. But first let me state a simple algorithm that I think...

How to avoid Alias when rotate the image in gdi+?

I have a problem on roating an Image on a canvas in gdi+, I am using the following code, however I find there are alias on the edge. myPathMatrix.Rotate(GetDCAngle(), MatrixOrderAppend); myPathMatrix.Translate( GetDCX(), GetDCY(), MatrixOrderAppend); canvas->SetTransform(&myPathMatrix); canvas->Draw(XXX); I used the following code t...

CALayer and CGGradientRef anti-aliasing?

Hello all. I'm having an odd issue with CALayer drawing for the iPhone. I have a root layer which adds a bunch of sublayers representing "bubbles". The end result is supposed to look something like this: The problem is that I can't seem to get the layer to anti-alias (notice the jaggies on the bubbles). My code overwriting drawInC...

Specify antialias property in the command line

I remember, not too long ago, somebody post a link on how to specify the global rendering hints to use anti-alias in java. Unfortunately I can't find the question. How can I specify the rendering hint to use anti-alias in swing? ...

HTML Canvas: draw image without anti-aliasing

I want to do pixel-true rendering of some images on my Canvas. Right now, I obtain the images through Javascript, so my images are HTMLImageElement instances. I can draw these on the Canvas' rendering context with drawImage. However, this performs anti-aliasing on the image, which I don't want. There appears to be a lower-level image m...

iPhone Animation: how to anti-alias?

Hi all, I was looking at some animations in my iPhone app and felt like it was kind of ugly. And then I undertsood it: it just doesn't animate through subpixel states. So, in case I use usual +beginAnimations/+commitAnimations, moving some stuff just a few pixels look "jumpy". How can I avoid it? Are there any flags to make it animate...

Is it possible to disable anti-aliasing in CSS when using @font-face with pixel fonts?

I want to use a pixel font on the web. I'm including it using @font-face however all the browsers are applying anti-aliasing to the font. I can't seem to find a CSS rule to disable this, can anyone think of another method of disabling anti-aliasing? ...

OpenGL ES iPhone - drawing anti aliased lines

Normally, you'd use something like: glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); glEnable(GL_BLEND); glEnable(GL_LINE_SMOOTH); glLineWidth(2.0f); glVertexPointer(2, GL_FLOAT, 0, points); glEnableClientState(GL_VERTEX_ARRAY); glDrawArrays(GL_LINE_STRIP, 0, num_points); glDisableClientState(GL_VERTEX_ARRAY); It looks good in t...

[iPhone] Disabling Anti-Aliasing for fonts

Hi, I'm writing a retro type game for the iPhone, and need to render a pixel style font to the screen. However, it looks nice and sharp when I run it in the simulator, but not when I run it on the device. Is there any way that I can disable Anti-Aliasing for fonts? I have already tried this: CGContextRef c = UIGraphicsGetCurrentContext(...

Anti-aliasing while animating "transform" property on CALayer?

I have a CALayer with a circle drawn to it at its final size. I want to animate the circle in, such that it starts at 1% scale and finishes at 100%. Right now the animation is not very smooth because the edges flicker while it's scaling. At the final size the circle looks right. I'm wondering if there's a way to have anti-aliasing during...

How to resolve anti-aliasing when changing color of an image in C#?

I am processing images to change their color from black to red, blue, green etc based on the requirement. I use SetPixel methods to change color of each pixel of the image from black to say red. It works mostly fine except the borders and some curves within the image. Let's say I've circled image filled with black color. Circled im...

filter to reverse anti-alias effects

I have bitmaps of lines and text that have anti-alias applied to them. I want to develop a filter that removes tha anti-alias affect. I'm looking for ideas on how to go about doing that, so to start I need to understand how anti-alias algorithms work. Are there any good links, or even code out there? ...