Hide

SftTree/OCX 7.5 - ActiveX Tree Control

Display
Print

GetImage Method, SftPictureObject Object

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 tree 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 tree 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.


Spring Break!

Our offices will be closed this week (March 18 through March 22).

We'll be back March 24 to address any pending sales and support issues.