converting Vectors to Bitmaps with mask

Chipp Walters chipp at chipp.com
Sun Jun 8 18:36:00 EDT 2003


>
> Actually, Ken has a code to convert a single color
> to transparent:
>
> http://www.sonsothunder.com/devres/metacard/tips/imag004.htm
>
> but I cannot use it on the image,
> because It gets corrupted everytime...

make sure your original image and the destination image are the same Width
and Height.

>
> I was calculating that to create an antialiased
> bitmap,
> 1) draw the graphics at double size
> 2) take a screenshot or save an image of it
> 3) resize the image to half his size.
> 4) the engine interpolates the pixels creating
> an antialised image.
>
> Could this always works as expected?
>
> Alejandro
>

No, this won't work (on Windows) because of the resize interpolation
routines used by MC (which are the same as the operating system). It's
called 'Nearest Neighbor' and it won't interpolate to a 'fuzzy' edge. A
bilinear or bicubic interpolation would work, but you'd have to create a
custom DLL for it.

-Chipp





More information about the use-livecode mailing list