Class LPGDIPlusProperties.TLPGPImage
From Mitov Wiki Doc
This is a Beta Read Only version of this page. Please review and send recommendations to mitov@mitov.com. We will enable the editing as soon as we are happy with the overall Wiki site.
Package: Mitov.BasicLab
Unit: LPGDIPlusProperties
Inherits: TLPPersistentNotify
Contents |
Syntax
Delphi:
type TLPGPImage = class( TLPPersistentNotify )
C++ Builder:
class TLPGPImage : public TLPPersistentNotify
Visual C++ (MFC):
class CTLPGPImage : public CTLPPersistentNotify
C# (.NET):
public ref class GPImage : Vcl.VclProperty
Summary
GDI+ image properties class.
Description
Defines a GDI+ image properties class.
Properties
Public
- Height - Returns the Height of the image. See Also Use this property to get the Height of the image.
- Width - Returns the Width of the image. See Also Use this property to get the Width of the image.
- GPImage
Methods
Public
- procedure FromBitmap(AValue : TBitmap) - Populates the image from a bitmap.
- procedure LoadFromFile(FileName : String) - Loads the image from a file.
- procedure LoadFromStream(Stream : TStream) - Loads the image from a stream.
- procedure SaveToStream(Stream : TStream) - Saves the image to a stream.
- procedure SaveToStream(Stream : TStream; Format : String) - Saves the image to a stream with a specified format.
- procedure SaveToFile(FileName : String; Format : String) - Saves the image to a file with a specified format.
- procedure SaveToFile(FileName : String) - Saves the image to a file.
- procedure GetFormats(AFormats : TStrings) - Returns list of supported image formats.
- function IsEmpty() : Boolean - Returns true if the image is empty.
- procedure Clear() - Clears the content of the image.