The following constants (prefixed syntax) are used by the drawing functions.
| | |
Constant | Details | Function |
---|
Versions 21 and laterBackgroundGradient New in version 21BackgroundGradient BackgroundGradient | Type of background: Background with gradient colors. | Background variable |
Versions 21 and laterBackgroundHatched New in version 21BackgroundHatched BackgroundHatched | Type of background: Hatched background. | Background variable |
Versions 21 and laterBackgroundSolid New in version 21BackgroundSolid BackgroundSolid | Type of background: Solid background. | Background variable |
Versions 21 and laterBackgroundTransparent New in version 21BackgroundTransparent BackgroundTransparent | Type of background: Transparent background. | Background variable |
copyBlackness | Fills the Image control with black | dCopyBlt |
copyDstInvert | Reverses the colors of destination Image control | dCopyBlt |
copyImage | Combines the source image and the destination image by using the transparency information of destination image
Can be used to include a logo in the destination image for example. | dCopyBlt |
copyMergeCopy | Merges the source Image control and the destination Image control | dCopyBlt |
copyMergePaint | Combines, via the "Logical AND" method, the source Image control and the "pattern" of destination Image control | dCopyBlt |
copyNotSrcCopy | Reverses the colors of source Image control | dCopyBlt |
copyNotSrcErase | Reverses, via the "Or" method, the combination between the source Image control and the destination Image control | dCopyBlt |
copyPatCopy | Copies the "pattern" of source Image control into the destination Image control | dCopyBlt |
copyPatInvert | Combines, via the "Exclusive Or" method, the pattern of source Image control and the "pattern" of destination Image control | dCopyBlt |
copyPatPaint | Combines, via the "Or" method, the inverted source Image control and the "pattern" of destination Image control | dCopyBlt |
copyScreen | Copies the screen | dCopyBlt |
copySrcAnd | Combines, via the "and" method, the pixels of the Image image control and the pixels of destination Image control | dCopyBlt |
copySrcCopy | Copies the source Image control into the destination Image control (simple copy) | dCopyBlt |
copySrcErase | Reverses the destination Image control and combines the result with the copy of source Image control | dCopyBlt |
copySrcInvert | Combines, via the "Exclusive Or" method, the pattern of source Image control and the "pattern" of destination Image control | dCopyBlt |
copySrcPaint | Combines, via the "Or" method, the pixels of source Image control and the pixels of destination Image control | dCopyBlt |
copyWhiteness | Fills the Image control with white | dCopyBlt |
Versions 16 and laterdComponentBlue New in version 16dComponentBlue dComponentBlue | The Blue component of image will be copied into the array. | dImageToArray |
Versions 16 and laterdComponentGreen New in version 16dComponentGreen dComponentGreen | The Green component of image will be copied into the array. | dImageToArray |
Versions 16 and laterdComponentRed New in version 16dComponentRed dComponentRed | The Red component of image will be copied into the array. | dImageToArray |
Versions 16 and laterdComponentRGB New in version 16dComponentRGB dComponentRGB | All image components will be copied into the array. | dImageToArray |
Versions 22 and laterdDisplayAsynchronous New in version 22dDisplayAsynchronous dDisplayAsynchronous | In browser code, used to optimize the drawing performances on an image. The drawing is displayed in the Image control once the user has finished their action. | <Image>.StartDrawing, <Image variable>.StartDrawing |
Versions 16 and laterdDisplayManual New in version 16dDisplayManual dDisplayManual | In browser code, it is used to delay the display of the drawing. The drawing will be displayed in the Image control once
dDisplay is used. | <Image>.StartDrawing, <Image variable>.StartDrawing |
dErase | Erases the drawing found in the Image control. | <Image>.StartDrawing, <Image variable>.StartDrawing |
Versions 16 and laterdGrayScale New in version 16dGrayScale dGrayScale | The image in grayscale will be copied into the array. | dImageToArray |
dGridlinesOpacity | The drawing is displayed over gridlines in order to highlight the transparent or semi-transparent sections of drawing. The gridlines are not saved in the image. | <Image>.StartDrawing, <Image variable>.StartDrawing |
dNoErase | Does not erase the drawing found in the Image control. | <Image>.StartDrawing, <Image variable>.StartDrawing |
Versions 23 and laterdNoShadow New in version 23dNoShadow dNoShadow | Management mode of shadow: The window shadow is not kept when copying the window. | dCopyWindowImage |
dOnChart | Used to draw in an Image control in which a chart was already drawn. In this case, the chart drawing is not erased. | <Image>.StartDrawing, <Image variable>.StartDrawing |
Versions 17 and laterdrAdapt New in version 17drAdapt drAdapt | Rotation option: The image is flipped and enlarged. Then, its size is reduced to correspond to the initial image size. | <Image>.Rotation, <Image variable>.Rotation |
drawAntiAliasing | Uses GDI+ to draw lines and circles without jagged effects. This mode is slower but the result is better than with the standard mode. | <Image>.ChangeMode, <Image variable>.ChangeMode |
drawDefault | Drawing mode: Standard colors | <Image>.ChangeMode, <Image variable>.ChangeMode |
drawXOR | Drawing mode: Colors applied using a "exclusive or" operation with the background. Erases a drawing if this option is used twice. | <Image>.ChangeMode, <Image variable>.ChangeMode |
Versions 17 and laterdrDefault New in version 17drDefault drDefault | Rotation option: Enlarge the image (if necessary) so that it corresponds to the dimensions of rotated image. | <Image>.Rotation, <Image variable>.Rotation |
Versions 18 and laterdrHighQuality New in version 18drHighQuality drHighQuality | Resizing option: In homothetic mode, improves the quality of the image when this one is reduced in relation to its initial size | <Image>.Resize, <Image variable>.Resize |
Versions 17 and laterdrHomothetic New in version 17drHomothetic drHomothetic | Resizing option: The image is stretched or reduced to occupy the defined space in an optimal way without being distorted. It occupies:- the entire specified height.
- the entire specified width.
| <Image>.Resize, <Image variable>.Resize |
Versions 17 and laterdrHomotheticCentered New in version 17drHomotheticCentered drHomotheticCentered | Resizing option: The image is stretched or reduced to occupy the defined space in an optimal way without being distorted and it is centered. It occupies:- the entire specified height: the image is centered horizontally.
- the entire specified width: the image is centered vertically.
| <Image>.Resize, <Image variable>.Resize |
Versions 17 and laterdrHomotheticExtended New in version 17drHomotheticExtended drHomotheticExtended | Resizing option: The image is stretched or reduced in order for the smallest side of the image to be entirely displayed. | <Image>.Resize, <Image variable>.Resize |
Versions 17 and laterdrNoEnlarging New in version 17drNoEnlarging drNoEnlarging | Rotation option: The image is flipped but not enlarged | <Image>.Rotation, <Image variable>.Rotation |
Versions 17 and laterdrStretched New in version 17drStretched drStretched | Resizing option: The image is stretched (if necessary) to correspond to the new specified width and to the new specified height. | <Image>.Resize, <Image variable>.Resize |
Versions 17 and laterdrTiled New in version 17drTiled drTiled | Resizing option: The image is tiled to occupy the entire new specified width and the entire new specified height. | <Image>.Resize, <Image variable>.Resize |
dWithOpacity | Allows the opacity to be managed in the different drawing functions used by the Image control. | <Image>.StartDrawing, <Image variable>.StartDrawing |
Versions 23 and laterdWithShadow New in version 23dWithShadow dWithShadow | Management mode of shadow: The window shadow is kept when copying the window. | dCopyWindowImage |
Versions 21 and latergclDefault New in version 21gclDefault gclDefault | Style of the text displayed in the link: The text of the link is underlined and it is colored in blue. The rollover cursor is shaped like a hand. | gClickableLink |
Versions 21 and latergclNoFontModif New in version 21gclNoFontModif gclNoFontModif | Style of the text displayed in the link: The text of the link is displayed in the initial style | gClickableLink |
Versions 21 and laterHatchCrossed New in version 21HatchCrossed HatchCrossed | Style of hatching: Criss-crossed hatching. | Background variable |
Versions 21 and laterHatchCrossedDiagonal New in version 21HatchCrossedDiagonal HatchCrossedDiagonal | Style of hatching: Diagonal crossed hatching. | Background variable |
Versions 21 and laterHatchDiagonal New in version 21HatchDiagonal HatchDiagonal | Style of hatching: Diagonal hatching at 60%. | Background variable |
Versions 21 and laterHatchDiagonalBottom New in version 21HatchDiagonalBottom HatchDiagonalBottom | Style of hatching: Diagonal hatching at 120%. | Background variable |
Versions 21 and laterHatchHorizontal New in version 21HatchHorizontal HatchHorizontal | Style of hatching: Horizontal hatching. | Background variable |
Versions 21 and laterHatchNone New in version 21HatchNone HatchNone | Style of hatching: No hatching. | Background variable |
Versions 21 and laterHatchVertical New in version 21HatchVertical HatchVertical | Style of hatching: Vertical hatching. | Background variable |
Versions 19 and latericoFormatBMP New in version 19icoFormatBMP icoFormatBMP | Image of the icon in BMP format. | Versions 19 and laterIcon variable New in version 19Icon variable Icon variable |
Versions 19 and latericoFormatPNG New in version 19icoFormatPNG icoFormatPNG | Image of icon in PNG format. | Versions 19 and laterIcon variable New in version 19Icon variable Icon variable |
imgAddThumbnail | Adds a thumbnail into the image file (<File name>).
This constant is ignored if a thumbnail is found in the image file displayed in the Image control. | <Image>.SaveJPEG |
Versions 17 and laterimgBGR New in version 17imgBGR imgBGR | Type of image buffer used: Image in 24-bit Blue Green Red format | dTransferToImage |
Versions 17 and laterimgBGR32 New in version 17imgBGR32 imgBGR32 | Type of image buffer used: Image in 32-bit Blue Green Red format without alpha layer. | dTransferToImage |
Versions 17 and laterimgBGRA New in version 17imgBGRA imgBGRA | Type of image buffer used: Image in 32-bit Blue Green Red format with alpha layer. | dTransferToImage |
Versions 17 and laterimgConvert New in version 17imgConvert imgConvert | Mode for loading the image: Convert an image from the 8-bit format to the 24-bit format. This option is used to apply the effect algorithms to this image for example. | dLoadImage |
Versions 17 and laterimgDefault New in version 17imgDefault imgDefault | Mode for loading the image: Load the image as it is. | dLoadImage |
imgGrayScale | Allows you to save the image in black and white ("Grayscale" display mode) | <Image>.SaveJPEG, <Image variable>.SaveImageJPEG |
imgProgressiveJPEG | Allows you to save the image in progressive JPEG format. This format is mainly used for the Web sites; it allows the pages to be loaded faster (the images being loaded and displayed progressively). | <Image>.SaveJPEG, <Image variable>.SaveImageJPEG |
Versions 17 and laterimgRGB32 New in version 17imgRGB32 imgRGB32 | Type of image buffer used: Image in 32-bit Red Green Blue format without alpha layer. | dTransferToImage |
imgSaveTag | Saves the Exif tags.
A new thumbnail is calculated if a thumbnail is found in the image file displayed in the Image control | <Image>.SaveJPEG, <Image variable>.SaveImageJPEG |