The Daily Click ::. Forums ::. General Chat ::. Antialiasing a bmp?
 

Post Reply  Post Oekaki 
 

Posted By Message

eyeangle



Registered
  12/06/2003
Points
  1683
18th August, 2007 at 03:43:49 -

I've drawn a picture in paint and when I print it it's quite pixelated. I want to put an antialiasing filter on it but I don't know how to do that.
Please help. Thanks.

 
theonecardgame.com

DaVince

This fool just HAD to have a custom rating

Registered
  04/09/2004
Points
  7998

Game of the Week WinnerClickzine StaffHas Donated, Thank You!Cardboard BoxDos Rules!
18th August, 2007 at 05:03:33 -

Get something like Irfanview (www.irfanview.com ) and change the picture's DPI (dots per inch) setting, which is intended for how many pixels are drawn at how many inches. (In Irfanview, the DPI can be found in the picture resize dialog.)

 
Old member (~2004-2007).

eyeangle



Registered
  12/06/2003
Points
  1683
19th August, 2007 at 04:20:20 -

I tried that, but DPI only changes how many pixels are going to be printed in that inch and doesn't have anything to do with smoothing the edges of a bitmap. I'm not too concerned about the printing aspect at the moment. I just need the edges smoothed.
Is anyone a wizard here at photoshop and would maybe know how to smooth jaggered edges in that?

 
theonecardgame.com

AndyUK

Mascot Maniac

Registered
  01/08/2002
Points
  14586

Game of the Week WinnerSecond GOTW AwardHas Donated, Thank You!VIP Member
19th August, 2007 at 09:29:16 -

Um
irfanview does have some filters like 'median filter'. But it's not really anti aliasing, it just blurs the picture a bit.

Of course there is the manual pixel by pixel option

Oh and MMF2 has a real time anti aliasing option on objects

Image Edited by the Author.

 
.

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
19th August, 2007 at 11:14:02 -

MMF's one only blurs the edges.
There isn't any good anti aliasing technique after the image was already rendered (Drawn in this case) other then pixel by pixel.

 
Service Unavailable

eyeangle



Registered
  12/06/2003
Points
  1683
22nd August, 2007 at 02:21:33 -

Is there say an algorithm that will anti-aliase a bmp. Kind of like the same way hq2x works with enlarging a picture.
I mean it couldn't be that hard. Someone the net must have made such a thing before.

Please help.

Image Edited by the Author.

 
theonecardgame.com

Fifth

Quadruped

Registered
  07/05/2003
Points
  5815

VIP MemberGOTW JULY 2010 WINNER!Kliktober Special Award TagGOTW HALLOWEEN 2011 WINNERPicture Me This Round 51 Winner!
22nd August, 2007 at 02:27:17 -

Well, now that you mention it...

http://www.create-games.com/download.asp?id=5872

 
Go Moon!

eyeangle



Registered
  12/06/2003
Points
  1683
22nd August, 2007 at 02:43:57 -

No, no, no. I have that program already, it's good so thanks. But that resizes the image. I need somthing that will smooth my image. Because all the pixels are very pixely, and I need them smoothed out so you can't notice them.

 
theonecardgame.com

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
22nd August, 2007 at 03:55:30 -

Try resizing the image to *4 and with HQx4 or something and then resize it back to it's original size with resampling.

 
Service Unavailable

eyeangle



Registered
  12/06/2003
Points
  1683
22nd August, 2007 at 05:34:30 -

Yep, already tried that. It only slowly makes the pictures sharper if you keep doing it. Here's an example of what I mean.

Image

Looks pretty good ey?

Image Edited by the Author.

 
theonecardgame.com

DeadmanDines

Best Article Writer

Registered
  27/04/2006
Points
  4758
6th September, 2007 at 05:11:54 -

How did you do that, specifically?

Did you do this:

1. Resize image x4
2. Shrink back to original size with resampling
3. Repeat

or did you do this:

1. Resize image x4
2. Resize image x4 again
3. ...and again...
4. ...and again...
5. Finally resize back to original size

Or something else? Cos that looks awesome.

Image Edited by the Author.

 
191 / 9999 * 7 + 191 * 7

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
6th September, 2007 at 07:15:30 -

The first one way won't do anything other then one anti aliasing proccess.
The way second will do more detailed anti aliasing.
Basiclly, Resizing by *4 is enough.

 
Service Unavailable

eyeangle



Registered
  12/06/2003
Points
  1683
6th September, 2007 at 09:35:23 -

I didn't do either way.

The picture I've got there I found on a website.
It just shows what their program can do. But I think the program cost money. Here's the link to their site:
http://www.resourcekt.co.uk/scalencrop/manualWeb/manual.htm

After all that I'm just gonna go with hq3x to enlarge the picture and not worry about antialiasing the smaller picture.

 
theonecardgame.com

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
6th September, 2007 at 12:09:00 -

Ok. First of all, to all intents and purposes blurring and antialiasing are the same thing. Each pixel colour is based on a weighted average of the original pixel and it's neighbours' colours.

What you actually want to do will depend on the type of image you want to print. Assuming it's a line drawing such as the one in your example, you want to use a filter such as the HQ filters (as you seem to have realised). These work in a very different way, looking for lines (ie. vectors), which are obviously easy to scale. If your image is like the one below it may even be possible to use a tool to convert it to a vector image which would be ideal.

So, as others have suggested, you should just need to keep enlarging the image. For printing though, you should not be shrinking it down again - the higher the resolution the better.

The other possibility you may have overlooked is your printer driver. There may be options inside the print setup than affect how the imge is scaled.

 
n/a

LIJI

Flava's Smarter Twin

Registered
  29/08/2006
Points
  2032

I like penguins
7th September, 2007 at 01:28:45 -

You're defiantly wrong here.
Anti Aliasing might use a kind of blur, but it's NOT a blur method.
Anti aliasing makes an image not too contrast-y on the edges by different methods.
For Vector images for example, the image is drawn on a 4 times bigger surface and then being resized with resampling. This also explains Flash's quality modes - Low doesn't antialias, Medium resizes by 2 and High by 4.
The method of using HQ filters is something very similar too.
In both cases, the "filter" will not blur lines which are straight on the X and Y axises.
To show what I explain, I made this image:
Image
Some other AA-ing filters may give better results.

 
Service Unavailable
   

Post Reply



 



Advertisement

Worth A Click