BCGControlBar Pro for MFC
CBCGPSVGImage

Detailed Description

The CBCGPSVGImage class implements simple interface, which allows to load an SVG image and draw it.

Public Member Functions

 AdaptColorsReplaces the SVG color with specified tone color. All colors with similar hue component (specified by clrBase parameter) will be replaced with adapted colors based on clrTone.
 
 CleanUpClean up the SVG image.
 
 ConvertToGrayScaleConverts the SVG colors to gray scale.
 
 CopyFromCopies data from source SVG image.
 
 DoDrawDraws an SVG using the graphics manager.
 
 DoDrawDraws an SVG on the device context.
 
 ExportToBitmapExports SVG image to bitmap.
 
 ExportToBitmapExports SVG image to bitmap.
 
 ExportToFileExports SVG image to file.
 
 ExportToIconExports SVG image to icon.
 
 FindByIDFinds an SVG element by its ID.
 
 GetBackgroundColorReturns SVG background color.
 
 GetDescriptionReturns SVG description.
 
 GetErrorsReturns list of SVG errors.
 
 GetNameReturns SVG image name.
 
 GetSizeReturns the SVG image size.
 
 GetViewBoxReturns SVG view box.
 
 GetXMLReturns a source XML buffer.
 
 InvertColorsInverts the SVG colors.
 
 InvertLuminosityInverts the SVG colors luminosities.
 
 LoadLoads an SVG image from resources.
 
 LoadFromBufferLoads an SVG image from memory buffer.
 
 LoadFromFileLoads an SVG image from file.
 
 LoadStrLoads an SVG image from resources.
 
 MakeDarkerMakes the SVG colors darker.
 
 MakeLighterMakes the SVG colors lighter.
 
 MirrorMirrors (flips horizontally) the SVG image. Intended for the RTL (right-to-left) support.
 
 ModifyOpacityModifies the SVG image opacity.
 
 ReplaceColorsReplaces the SVG color with specified color. If the color exactly matches the clrOld parameter, clrNew will take its place.
 
 SetElementsFilterSets elements editing filter.
 
 SimplifySimplifies SVG image.
 

Static Public Attributes

 m_bOptimizeShadowEffectSpecifies whether shadow effects defined by a combination of the basic filters, such as feOffset, feGaussianBlur, and feFlood, are automatically converted to the feDropShadow effect. The default value is TRUE
 
 m_bTraceProblemsDefaultSpecifies whether all SVG issues should be reported to the Debug Output window. The default value is TRUE
 
 m_strSVGResTypeSVG resource type. The default value is "SVG"