User Tools

Site Tools


api:dk11:delphi:gistypesui.tgis_bitmapfactory.docreatefromresource_tgis_bitmap_intptr_string_string

Table of Contents



TGIS_BitmapFactory.DoCreateFromResource(TGIS_Bitmap; IntPtr; String; String) method

DK for Delphi | GisTypesUI.TGIS_BitmapFactory.DoCreateFromResource | Overloads | Constructors | Methods | Properties

Create a bitmap from a resource.

Available also on: .NET | Java | Python.

Syntax

// Delphi
public
  function DoCreateFromResource(
    const _parent : TGIS_Bitmap;
    const _ref : IntPtr;
    const _name : String;
    const _ext : String
  ) : TGIS_BitmapAbstract; overload; virtual; abstract;
// C++ Builder
public:
  virtual TGIS_BitmapAbstract* DoCreateFromResource(
    TGIS_Bitmap* const _parent,
    IntPtr* const _ref,
    const UnicodeString _name,
    const UnicodeString _ext
  ) = 0 /* overload */;

Parameters

Name Type Description
_parent TGIS_Bitmap owning TGIS_Bitmap object
_ref IntPtr module handle; use 0 to load a standard DK resource; see TGIS_Bitmap.LoadFromResourceName remarks for details
_name String resource name
_ext String resource file extension required on JAVA platforms (for example, '.bmp')

Result

Type Description
TGIS_BitmapAbstract created bitmap implementation
2026/07/11 00:44

Page Tools