Hide

SftBox/OCX 5.0 - Combo Box Control

Display
Print

SftPictureObject.GetImage Method

Retrieves the picture object attributes defined as a GDI+ image.

Syntax

VB.NETobject.GetImage(ByRef GDIPlusImage As Integer, ByRef Owned As Boolean)
VBobject.GetImage(GDIPlusImage As LONG_PTR, Owned As Boolean)
C#.NETvoid object.GetImage(out int GDIPlusImage, out bool Owned);
VC++HRESULT object->GetImage(LONG_PTR* GDIPlusImage, VARIANT_BOOL* Owned);
CHRESULT object->raw_GetImage(LONG_PTR* GDIPlusImage, VARIANT_BOOL* Owned);

object

A SftPictureObject object.

GDIPlusImage

Returns a pointer to a Gdiplus::Image object.

Owned

Returns True if the GDI+ image is owned by the control, False otherwise.

Comments

The GetImage method retrieves the picture object attributes defined as a GDI+ image.

SetImage can be used to assign ownership of a GDI+ image to the control, so it automatically deletes the object when it is no longer needed. This is typically only used by C++ applications that have direct access to GDI+ classes.

If the current picture object is not based on a GDI+ image (SftPictureObject.Type other than sftTypeGDIPlus), the returned values are not valid.

See Also SftPictureObject Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.