Page 1 of 1

Save Image Anti Alias option

Posted: Tue Nov 06, 2012 11:19 am
by IdeasVacuum
SaveImage(#MyImage, sMyFile, #PB_ImagePlugin_PNG | #PB_AntiAlias)

Re: Save Image Anti Alias option

Posted: Tue Nov 06, 2012 11:47 am
by eesau
What would it do exactly?

Re: Save Image Anti Alias option

Posted: Tue Nov 06, 2012 12:49 pm
by luis
Usually antialiasing makes sense with computer generated geometry, from a working higher resolution to a targeted lower one (supersampling), or in a more ample sense when you want an image to be merged with a background and want its borders to be filtered in some way against the adjacent pixels (not really antialiasing though).
But I don't see what can be done with a generic, static bitmap since there is not a rasterization phase involved.

Re: Save Image Anti Alias option

Posted: Fri Nov 09, 2012 12:05 am
by IdeasVacuum
For me, it's to do with graphics dynamically drawn on a CanvasGadget. Since the drawing is dynamic, the AlphaBlend mode cannot be used, though I'm looking at a couple of alternatives, with re-drawing the graphic on mouse-up being a possibility.

Re: Save Image Anti Alias option

Posted: Fri Nov 09, 2012 10:24 am
by Kukulkan
I think it is impossible of this stage (saving). IMHO anti-aliasing must happen while drawing because then the geometry is known. On saving a bitmap it can only be some blurring which will reduce sharpness but not a real anti-aliasing.

Am I wrong?

Kukulkan

Re: Save Image Anti Alias option

Posted: Fri Nov 09, 2012 4:17 pm
by netmaestro
I don't believe SaveImage() is the appropriate stage for it, however if you're saving as 8bit you could see what the #PB_Image_FloydSteinberg flag does for you, it may help quite a bit.