Board index » cppbuilder » Anti-aliasing
Steve
![]() CBuilder Developer |
Anti-aliasing2003-08-07 10:28:18 PM cppbuilder36 Does anyone have any info about how to code an anti-aliasing routine given bitmap data and a colour to blend? Can't find anything with Google.... A library I am using give me the following function: copy_alpha(gx_device * dev, const byte * data, int data_x, int raster, gx_bitmap_id id, int x, int y, int width, int height, gx_color_index color, int depth) So, the actual bitmap is pointed to by 'data' and the color I want to blend is 'color'. Each pixel is represented by 4 bits. The small amount of help that comes with this libray says this: Fill a given region with a given color modified by an individual alpha value for each pixel. For each pixel, this is equivalent to alpha-compositing with a source pixel whose alpha value is obtained from the pixmap (data, data_x, and raster) and whose color is the given color (which has not been premultiplied by the alpha value), using the Sover rule. Thanks, Steve. |