Encapsulates the GDI+ Bitmap class. The Bitmap class inherits from the TRSGPImage class. The Image class provides methods for loading and saving vector images (metafiles) and raster images (bitmaps). The Bitmap class expands on the capabilities of the Image class by providing additional methods for creating and manipulating raster images.
To create a VCL TBitmap from the image, call CreateBitmap method. To copy a VCL TBitmap or TGraphic to the image, call Image.Assign(Bitmap) method. To copy the image to a VCL TBitmap, call Bitmap.Assign(RSGPImage);
Namespace: RSGdiPlusGraphics
TPersistent |
Delphi |
type |
|
GDI+ also has built-in decoders that support the following file types: • WMF • EMF • ICON |
Note |
---|
Note that this is a class property and as such an object does not need to be created to access the property |
Returns whether the image applies color correction according to color management information that is embedded in the stream. Embedded information can include ICC profiles, gamma values, and chromaticity information. (Inherited from RSGdiPlusGraphics.TRSGPImage.)
Returns an array of all the image encoders supported by GDI+.
Windows GDI+ provides the Image class and the Bitmap class for storing images in memory and manipulating images in memory. GDI+ writes images to disk files with the help of image encoders and loads images from disk files with the help of image decoders. An encoder translates the data in an Image or Bitmap object into a designated disk file format. A decoder translates the data in a disk file to the format required by the Image and Bitmap objects. GDI+ has built-in encoders and decoders that support the following file types:
• BMP
• GIF
• JPEG
• PNG
• TIFF
GDI+ also has built-in decoders that support the following file types:
• WMF
• EMF
• ICON
Note |
---|
Note that this is a class property and as such an object does not need to be created to access the property |
Returns a set of flags that indicate certain attributes of this Image object. (Inherited from RSGdiPlusGraphics.TRSGPImage.)
Returns the image codec (encoder/decoder) for GIFs
Note |
---|
Note that this is a class property and as such an object does not need to be created to access the property |
Handle of the graphics object, used by the MS GDI+ flat API routines (Inherited from RSGdiPlusGraphics.TRSGPGraphicsObject.)
Specifies the height, in pixels, of the bitmap
Specifies the horizontal resolution, in dots per inch, of this bitmap
Return the image type (bitmap, metafile, or unknown) of the image (Inherited from RSGdiPlusGraphics.TRSGPImage.)
Returns the image codec (encoder/decoder) for JPEGs
Note |
---|
Note that this is a class property and as such an object does not need to be created to access the property |
Occurs when the graphics object changes.
Note |
---|
There are two events that are exactly the same, OnChanged and OnChange. The extra event name is to allow easier transition from other Delphi libraries, either the VCL (OnChanged) or FMX (OnChange) libraries. Use either one as needed. Only one event is triggered. |
Occurs when the graphics object changes.
Note |
---|
There are two events that are exactly the same, OnChanged and OnChange. The extra event name is to allow easier transition from other Delphi libraries, either the VCL (OnChanged) or FMX (OnChange) libraries. Use either one as needed. Only one event is triggered. |
Canvas that owns the object. The Canvas will free this graphics object if it is destroyed. However, to keep memory use under control, it is recommended that you free graphics objects when you are finished with them. (Inherited from RSGdiPlusGraphics.TRSGPGraphicsObject.)
Returns the pixel format of this Image object. (Inherited from RSGdiPlusGraphics.TRSGPImage.)
Returns a set of flags about the pixel format (Inherited from RSGdiPlusGraphics.TRSGPImage.)
Specifies the color of a specified pixel in this bitmap.
Returns the image codec (encoder/decoder) for PNGs
Note |
---|
Note that this is a class property and as such an object does not need to be created to access the property |
Return a globally unique identifier ( GUID) that identifies the format of this Image object. (Inherited from RSGdiPlusGraphics.TRSGPImage.)
Returns the image codec (encoder/decoder) for TIFFs
Note |
---|
Note that this is a class property and as such an object does not need to be created to access the property |
Specifies the vertical resolution, in dots per inch, of this image.
Specifies the width, in pixels, of the bitmap
|
|