Questions tagged [antialiasing]

Techniques for minimizing artifacts when representing a high-resolution image at a lower resolution, or rendering an image from a scene with small details.

In digital signal processing, spatial anti-aliasing is the technique of minimizing the distortion artifacts known as aliasing when representing a high-resolution image at a lower resolution. Anti-aliasing is used in digital photography, computer graphics, digital audio, and many other applications. Anti-aliasing means removing signal components that have a higher frequency than is able to be properly resolved by the recording (or sampling) device. This removal is done before (re)sampling at a lower resolution.

In signal acquisition and audio, anti-aliasing is often done using an analog anti-aliasing filter to remove the out-of-band component of the input signal prior to sampling with an analog-to-digital converter. In digital photography, optical anti-aliasing filters are made of birefringent materials, and smooth the signal in the spatial optical domain. The anti-aliasing filter essentially blurs the image slightly in order to reduce resolution to below the limit of the digital sensor (the larger the pixel pitch, the lower the achievable resolution at the sensor level). See the articles on signal processing and aliasing for more information about the theoretical justifications for anti-aliasing.

(Summarized from http://en.wikipedia.org/wiki/Spatial_anti-aliasing)

973 questions
37
votes
7 answers

How to draw a decent looking Circle in Java

I have tried using the method drawOval with equal height and width but as the diameter increases the circle becomes worse looking. What can I do to have a decent looking circle no matter the size. How would I implement anti-aliasing in java or some…
Bobby
  • 18,217
  • 15
  • 74
  • 89
35
votes
3 answers

Anti-aliasing in R graphics under Windows (as per Mac)

is there a way to plot anti-aliased graphics from the Windows version of R? As you can see from the two versions below the Mac version of R prints graphics anti aliased.... ....whereas while the Windows version anti-aliases text, it does not…
Thomas Browne
  • 23,824
  • 32
  • 78
  • 121
35
votes
2 answers

Smoothing image edges in WPF

I have a few 256x256 images I am using with Image controls in a WPF application. Although they are all 256x256, I changed some of the controls to 64x64, etc. When I resize it down (using fill as my stretch property), the edges become very rough.…
Wilson
  • 8,570
  • 20
  • 66
  • 101
35
votes
3 answers

Disable Anti-Aliasing Fonts in Xcode 4.4 in Mountain Lion

It's getting pretty frustrating to keep struggling with this one. I'm not sure if it's Xcode 4.4 or Mountain Lion (I installed both simultaneously), but once again my code is being anti-aliased (font smoothing) in Xcode. I was previously able to fix…
Brent Traut
  • 5,614
  • 6
  • 29
  • 54
33
votes
5 answers

Draw smoothly scaled bitmaps on Canvas

This is how I draw Bitmap on Canvas in my Android app: canvas.save(); canvas.scale(scale, scale, x, y); canvas.drawBitmap(bitmap, x, y, null); canvas.restore(); However the Bitmap is not scaled smoothly, no anti-aliasing is performed. How can I…
fhucho
  • 34,062
  • 40
  • 136
  • 186
31
votes
5 answers

Faking Subpixel Antialiasing on Text with Core Animation

For anyone working on a project with Core Animation layer-backed views, it's unfortunately obvious that subpixel antialiasing (text smoothing) is disabled for text not rendered on a pre-set opaque background. Now, for people who are able to set…
Itai Ferber
  • 28,308
  • 5
  • 77
  • 83
28
votes
2 answers

change strength of antialiasing in matplotlib

Is it possible to increase the antialiasing in matplotlib? I can still see some aliasing in my data, I tried several backends and it is still there. The antialiasing flag of the lines is set. Here you can see what I mean It's a sample taken from a…
P3trus
  • 6,747
  • 8
  • 40
  • 54
28
votes
6 answers

Antialiasing not working in Three.js

I am new to three.js and have starting working with it a lot recently. I really enjoy it and I have created some incredible things. However, I'm unsure why but when setting antialiasing to true I see no difference. renderer = new…
zaidi92
  • 355
  • 1
  • 3
  • 11
27
votes
3 answers

Is there an antialiasing method for Python PIL?

For lines and ellipses in PIL, the images are rough. I found antialiasing only in resize and thumbnail. Is there any way to do antialiasing when drawing a line or ellipse?
whi
  • 2,685
  • 6
  • 33
  • 40
26
votes
4 answers

Antialiasing edges of UIView after transformation using CALayer's transform

I have a UIView object that rotates using CALayer's transform: // Create uiview object. UIImageView *block = [[UIImageView alloc] initWithFrame....] // Apply rotation. CATransform3D basicTrans = CATransform3DIdentity; basicTrans.m34 =…
Oleg
  • 1,383
  • 4
  • 19
  • 35
26
votes
8 answers

@font-face anti-aliasing on windows and mac

I've used http://www.fontsquirrel.com/ to create a @font-face kit. It works fine, but the result on windows is different from the result on mac. On windows the font seems to have a wrong anti-aliasing: this is the result on Mac with FF, Chrome or…
pasine
  • 11,311
  • 10
  • 49
  • 81
26
votes
8 answers

Any quick and dirty anti-aliasing techniques for a rotated UIImageView?

I've got a UIImageView (full frame and rectangular) that i'm rotating with a CGAffineTransform. The UIImage of the UIImageView fills the entire frame. When the image is rotated and drawn the edges appear noticeably jagged. Is there anything I can do…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
23
votes
2 answers

Antialiasing shapes in Pygame

I'm using Pygame to draw some things. The problem is that they have a lot of aliased edges: I want to make them softer, like this: My idea so far was to draw the shape in double size, and then use pygame.transform.smoothscale(surf, (w/2,…
kmaork
  • 5,722
  • 2
  • 23
  • 40
21
votes
3 answers

Howto Enable Font Antialiasing in Windows

I have downloaded a font that looks less than desirable if it is not anti-aliased. I can not figure out how to enable anti-aliasing in VS, I have changed the 'Smooth Edges of Screen Fonts' in the system performance options but that does not seem to…
Andrew Burns
  • 13,917
  • 9
  • 40
  • 42
21
votes
3 answers

LibGDX antialiasing

Is there a way to implement antialiasing in LibGDX? My lines are very pixilated.
ComanderKai77
  • 460
  • 6
  • 14
1
2
3
64 65