How to Help Your Business Become an AI Early Adopter
The EBGFX Library is a Free MFC compatible library created to get fast
access to image data and include several functions not available in the
Whether you create a Ray-Tracer, an Image Processing
Library, a Painting Program or Games, you need direct pixel access,
you can't just use GetPixel, SetPixelV. One way to achieve this is using
Dibs (Device Independant Bitmaps). To get rid of the details of creating
destroying DibSections I wrote a CDib class.
However I want more than just Creating and Destroying Images, I want to have several layers and techniques to composite those layers into a final Image, so I've implemented some of the Compositing techniques found in Photoshop. (As a GFX Artist I'm more acquainted with those techniques as with src & dst Blend functions).
Two other classes are not yet released : CFilter, which implements a lot of Image Processing Filters, and CFileHandler which loads several Image Formats like BMP, JPG, GIF, TGA, TIFF, PCX, PSD, etc. In the future I'll probably create a DirectDaw based version for Games.
What does each function do ?
|Blend :||Blends the src color with the dst color (alpha from 0 to 255)|
|Darken :||dst = Darkest Color ( src, dst )|
|Difference :||dst = Abs ( src-dst )|
|Lighten :||dst = Lightest Color ( src, dst )|
|Multiply :||dst = src*dst|
|Screen :||dst = (255-src)*(255-dst)|
What can they be used for ?
|Blend :||That nice Glassy effect for windows, water, fading|
|Multiply :||Exclude certain color channels, masking|
|Lighten, Screen :||Flares, Fire, Explosions|
This is a small example which shows some of the functionality of the CDib and CDrawDib classes : RotoZoom.zip
It's a small RotoZoomer with optional Motion Blur (using the CDib functions)
This is a second example testing the new CopyDC/PasteDC functions, It grabs the opposite part of the screen, and puts it behind Glass. There is still a little problem though (see Second Screenshot), how can you grab the screen before your window gets painted ? If anyone knows how to fix this, please mail me
Bugs & Warnings
Send Suggestions, Speed Increases and Bug Reports to email@example.com
Date Posted: 5/08/98