Setting DigitalPaint Properties in the LRasterPaintWindow Class

LEADTOOLS DigitalPaint provides several types of painting abilities, including:

image\sqrblit.gif painting using a paintbrush

image\sqrblit.gif painting shapes

image\sqrblit.gif painting a region

image\sqrblit.gif filling an area with paint

image\sqrblit.gif painting text

Each of these is considered a paint "group" and each group has its own set of DigitalPaint properties that can be set. The values set for these properties control the paint results. For example, these properties determine:

image\sqrblit.gif whether the user draws a line or an ellipse.

image\sqrblit.gif whether the paintbrush contains color or an image.

image\sqrblit.gif how quickly the paint in the paintbrush will fade, if at all.

image\sqrblit.gif the shape of the region to paint.

image\sqrblit.gif the color to use when filling an area.

image\sqrblit.gif the text to paint.

image\sqrblit.gif etc.

Each group of properties has a group-specific structure used for getting or setting the properties. These structures are given below:

PAINTBRUSH

PAINTSHAPE

PAINTREGION

PAINTFILL

PAINTTEXT

Every structure has the dwMask field that will let the user specify the valid fields within the structure. In addition, there are default values for the members of each structure, which will be used if the user does not set paint properties.

To get the current properties for a specific group, use one of the functions listed below. Each function returns a pointer to a group-specific structure that is updated with the current properties.

LRasterPaintWindow::GetPaintBrush

LRasterPaintWindow::GetPaintFill

LRasterPaintWindow::GetPaintRegion

LRasterPaintWindow::GetPaintShape

LRasterPaintWindow::GetPaintText

To set the properties for a specific group, use one of the functions listed below. Each function requires a pointer to the appropriate group-specific structure. The structure should contain valid data for setting the properties.

LRasterPaintWindow::SetPaintBrush

LRasterPaintWindow::SetPaintFill

LRasterPaintWindow::SetPaintRegion

LRasterPaintWindow::SetPaintShape

LRasterPaintWindow::SetPaintText