LEADTOOLS DigitalPaint provides several types of painting abilities, including:
painting using a paintbrush
painting shapes
painting a region
filling an area with paint
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:
whether the user draws a line or an ellipse.
whether the paintbrush contains color or an image.
how quickly the paint in the paintbrush will fade, if at all.
the shape of the region to paint.
the color to use when filling an area.
the text to paint.
Each group of properties has a group-specific structure used for getting or setting the properties. These structures are given below:
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