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
14
votes
2 answers

Add shadow (recessed text effect) to Cocoa label without degrading text rendering quality

I'd like to create statusbar with text effect like in Safari or iTunes, i.e. recessed text. However, if I simply add shadow in Interface Builder using Core Animation panel, OS X's worst text rendering kicks in: What's the trick to get recessed…
Kornel
  • 97,764
  • 37
  • 219
  • 309
14
votes
1 answer

Turn off anti-aliasing on svg when applying CSS3:Zoom on the element?

I found that when the CSS3 Zoom is applied on small SVG icons (9px:9px with zoom: 1.5), the SVG icons could be blurry. Any idea to get a sharp and clean icon in this case? Thanks in advance. The SVG:
bigbearzhu
  • 2,381
  • 6
  • 29
  • 44
13
votes
6 answers

How to draw smooth line in OpenGL with antialiasing?

I need to draw a smooth line in OpenGL and here is what I have done: glEnable( GL_LINE_SMOOTH ); glEnable( GL_POLYGON_SMOOTH ); glHint( GL_LINE_SMOOTH_HINT, GL_NICEST ); glHint( GL_POLYGON_SMOOTH_HINT, GL_NICEST ); glBegin( GL_LINE_STRIP ); for(…
q0987
  • 34,938
  • 69
  • 242
  • 387
13
votes
5 answers

Change Sublime Text 2 Font Weight

The normal font-weight in Sublime Text was always bold. Now it is really thin and i cant work with that. Can I change it back to what it was before ? I have not changed anything, it just changed after i rebooted my macbook. Thanks, Mottenmann
Mottenmann
  • 413
  • 1
  • 4
  • 12
13
votes
2 answers

Disabling antialiasing on a WPF image

I'm writing a small Login dialog, and have embedded a banner at the top of the dialog for aesthetic reasons. All went well, except that by default, WPF anti aliases the entire image, making the text that was contained within it frustrating…
Bob
  • 2,002
  • 3
  • 16
  • 18
12
votes
2 answers

How to draw circle in unity by shader and anti-aliasing

I have drawn a circle by shader, but I can't get anti-aliasing to work. I tried finding an answer here http://answers.unity3d.com/questions/521984/how-do-you-draw-2d-circles-and-primitives.html, but I have to use discard to draw circle. Here is a…
user1419851
  • 131
  • 1
  • 1
  • 6
12
votes
2 answers

CSS bad rendering in translateZ( ) vs scale( )

I noticed that there is a big quality difference when transforming text in this 2 ways: .text1 { width: 200px; height: 22px; position: absolute; top: 40%; left: 0; transform-origin: 50% 50%; transform: scale(2); /* here */ …
Vandervals
  • 5,774
  • 6
  • 48
  • 94
12
votes
1 answer

Can I programmatically enable WebGL antialiasing on Firefox?

For example, on a page like this one, in Safari 7 it's antialiased, but in Firefox 29 (OS X 10.9) it's not. Firefox does seem to have the capability to antialias. If I set the about:config setting "webgl.msaa-force" to "true", then it is…
user3609340
  • 123
  • 1
  • 1
  • 5
12
votes
4 answers

How can I inherit the system's anti-alias setting for painting text to off-screen images like swing does?

When I run my swing GUI applications under Java 6, they automatically use my configured sub-pixel anti-alias settings for all fonts. The result is much improved over standard AA options. But when I paint to an image I can find no way to initialize…
Lawrence Dol
  • 63,018
  • 25
  • 139
  • 189
12
votes
3 answers

Why are the Tkinter canvas lines jagged?

The lines drawn on a Tkinter.Canvas are not smooth. How can they be made smooth? Here's what I tried: from Tkinter import * root = Tk() cv = Canvas(root,bg = 'white') rt1 = cv.create_rectangle(10,10,110,110,width = 8,tags = ('r1','r2','r3')) …
user1653363
  • 375
  • 1
  • 5
  • 7
11
votes
1 answer

How to get better anti-aliasing results in Cairo (examples shown)

Building a project using Cairo for graphics processing. Neither of the anti-aliasing options produce a good enough result. I'm using an ARGB32 surface and writing to png. I have tried using all of the hinting styles but I can see no change in the…
digout
  • 4,041
  • 1
  • 31
  • 38
11
votes
2 answers

Pyglet OpenGL drawing anti-aliasing

I've been looking around for a way to anti-alias lines in OpenGL, but none of them seem to work... here's some example code: import pyglet from pyglet.gl import * …
Jared Forsyth
  • 12,808
  • 7
  • 45
  • 54
11
votes
2 answers

Java Font Rendering

I have been attempting to enhance my GUI system written in Java to use subpixel antialiasing and have been successful, except for two remaining anomalies. This is a follow on to my other question from a few weeks ago. The first problem is that…
Lawrence Dol
  • 63,018
  • 25
  • 139
  • 189
11
votes
1 answer

"Renders with edge antialiasing" causes delay in UIAlertView in iOS 7

Ever since iOS 7, I noticed my UIAlertViews show with a sort of drawing delay- what happens is the screen dims and the UIAlertView's text appears on the screen for just a split second before the actual frame of the alert view appears. I traced the…
Keller
  • 17,051
  • 8
  • 55
  • 72
11
votes
2 answers

Source code for Xiaolin Wu's line algorithm in C?

I'm looking for a nice and efficient implementation of Xiaolin Wu's anti-aliased line drawing algorithm in C, does anyone have this code they could share with me? Thanks
horseyguy
  • 29,455
  • 20
  • 103
  • 145