Skip to main content

TdxCustomSmartImage Members

The base class for all classes that implement DevExpress image containers.

Constructors

Name Description
Create Inherited from TGraphic.
CreateFromBitmap(TBitmap) Creates a Smart Image container and populates it with the specified bitmap.
CreateFromBits(Integer,Integer,TRGBColors,Boolean) Creates a new Smart Image container and populates it with the specified array of pixel data.
CreateFromBits(Integer,Integer,TRGBColors,TAlphaFormat) Creates a new Smart Image container and populates it with the specified array of pixel data.
CreateFromBits(Integer,Integer,PRGBQuad,TAlphaFormat) Creates a new Smart Image container and populates it with the specified array of pixel data.
CreateFromFile(string) Creates a new Smart Image container and loads the specified image file.
CreateFromHBitmap(HBITMAP) Creates a Smart Image container and populates it with a TBitmap from the specified handle.
CreateFromStream(TStream) Creates a Smart Image object from the specified stream that contains an image.
CreateSize(Integer,Integer,TdxAlphaColor) Creates a Smart Image object with the stored image filled with the specified color.
CreateSize(TRect,TdxAlphaColor) Creates a new Smart Image container of the specified size and color.
CreateSize(TSize,TdxAlphaColor) Creates a new Smart Image container of the specified size and color.

Properties

Name Description
ActiveFrame Specifies the zero-based index of the stored image’s frame currently displayed by the Smart Image container.
Animation Specifies if the animation playback of the stored animated GIF image is enabled.
AnimationFrameCount Returns the number of frames within the stored image.
AnimationFrameDelay Specifies the frame delay (in milliseconds).
AnimationLoop Specifies the animation sequence playback mode for the stored animated image.
AnimationLoopCount Returns the number of the stored image’s animation playback loops in the multiple-run animation mode.
AnimationLoopIndex Specifies the number of animation sequence runs played by the Smart Image container.
ClientRect Returns the rectangle corresponding to the stored image’s dimensions.
Empty Inherited from TGraphic.
HandleAllocated Identifies if the Smart Image container has a handle associated with the stored image data.
Height Inherited from TGraphic.
ImageCodec Specifies the active image format codec.
ImageDataFormat Specifies the deprecated format ID of the stored image.
IsAlphaUsed Identifies whether the stored image is transparent.
Modified Inherited from TGraphic.
Palette Inherited from TGraphic.
PaletteModified Inherited from TGraphic.
ScaledDrawer Inherited from TGraphic.
Size Returns the stored image’s dimensions, in pixels.
SupportsPartialTransparency Inherited from TGraphic.
Transparent Inherited from TGraphic.
Width Inherited from TGraphic.

Methods

Name Description
Assign(TPersistent) Populates the image container with an image from the specified source.
AssignFromGraphic(TGraphic) protected Populates the Smart Image container with the image stored in the specified image container.
AssignFromSmartImage(TdxCustomSmartImage) protected Populates the image container with an image stored in another image container.
AssignTo(TPersistent) Inherited from TPersistent.
CanLoadFromStream(TStream) Inherited from TGraphic.
ChangeColor(TColor) Assigns the specified color to all pixels of the stored image.
Clear Releases resources and a handle associated with the stored image.
Clone Creates a copy of the Smart Image container.
Compare(TdxCustomSmartImage) Compares two Smart Image containers.
ConvertToBitmap Rasterizes the stored vector image.
CopyToClipboard Copies the stored image to the clipboard.
CutToClipboard Moves the stored image to the clipboard.
DisableScaledDrawer Inherited from TGraphic.
Dormant Releases the handle associated with the stored image data.
EnableScaledDrawer(TScaledGraphicDrawerClass,Boolean) Inherited from TGraphic.
Equals(TObject) Inherited from TObject.
GetAsBitmap Returns the stored image in a bitmap container.
GetBitmapBits Returns the stored image as an array of pixel color data.
GetHashCode Calculates the hash code from the stored image pixel data.
GetNamePath Inherited from TPersistent.
GetOwner Inherited from TPersistent.
HandleNeeded Creates a handle for the suspended Smart Image object.
HasClipboardFormat Identifies if at least one clipboard image format is supported.
IsSupportClipboardFormat(Word) Identifies if the specified clipboard image format is supported.
LoadFromBits(Integer,Integer,TRGBColors,Boolean)
LoadFromBits(Integer,Integer,TRGBColors,TAlphaFormat) Loads the stored image from the specified array of pixel colors.
LoadFromClipboardFormat(Word,THandle,HPALETTE) Loads an image from the clipboard.
LoadFromFieldValue(Variant) Loads an image from the specified Variant value stored in a BLOB dataset field.
LoadFromFile(String) Inherited from TGraphic.
LoadFromResource(THandle,string,PChar) Loads an image from the specified resource.
LoadFromStream(TStream) Loads an image from the specified stream.
PasteFromClipboard Set the image within the clipboard as the stored image.
QueryInterface(TGUID,Untyped) Provides access to the implementation of a specified interface if the Smart Image container supports it.
Resize(Integer,Integer) Resizes the stored image according to the new specified dimensions, in pixels.
Resize(TSize) Resizes the stored image according to the new specified dimensions, in pixels.
SaveToClipboardFormat(Word,THandle,HPALETTE) Inherited from TGraphic.
SaveToFile(String) Inherited from TGraphic.
SaveToFile(string) Saves the stored image to a file.
SaveToStream(TStream) Saves the stored image within the specified stream.
SaveToStreamByCodec(TStream,TdxImageDataFormat) Saves the stored image to a stream in the required format.
SaveToStreamByCodec(TStream,TdxSmartImageCodecClass) Saves the stored image to a stream in a specified format.
Scale(Integer,Integer) Resizes the stored image while keeping its aspect ratio.
SetBitmap(TBitmap) Store the specified bitmap within the Smart Image object.
SetSize(Integer,Integer) Inherited from TGraphic.
StartAnimation Initiates or resumes the animation of the stored GIF image.
StopAnimation Stops the animation of the stored GIF image.
StretchDraw(HDC,TdxRectF,TdxRectF,Byte,IdxColorPalette)
StretchDraw(HDC,TdxRectF,Byte,IdxColorPalette)
StretchDraw(HDC,TRect,Byte,IdxColorPalette) Paints the stored image within the destination rectangle of the specified device context.
StretchDraw(HDC,TRect,TRect,Byte,IdxColorPalette)
ToString Inherited from TObject.
UpdateScaledDrawer Inherited from TGraphic.

Events

Name Description
OnChange Inherited from TGraphic.
OnProgress Inherited from TGraphic.
See Also