DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


IBitmap Interface

GetBitmapData
GetInfo
GetBits

IBitmap interface gives access to Windows bitmaps used in DG Kernel software. Parameters of the bitmap, including size, pixel format, etc can be obtained via GetInfo method. IBlob obtained via GetBitmapData method allows saving or copying bitmap data to a different memory location.

See also Interface List


HRESULT GetBitmapData(IBlob** fileData)

Parameters

fileData - [out] New buffer containing copy of bitmap ready for saving as a .bmp file.

Remarks:

The methods creates a new Blob, which contains the bitmap. The data has structure of a Windows Bitmap (.bmp) file loaded in memory. See Bitmap File Format for more details.


HRESULT GetInfo(KCBitmap* info)

Parameters

info - [out] KCBitmap structure containing parameters of the bitmap

Remarks:

The methods returns information about size, pixel format and other information about the bitmap.


HRESULT GetBits(IBlob** image)

Parameters

image - [out] Blob, which refers to the buffer containing the image bits

Remarks:

The method gives read-only access to the memory buffer, which contains bits of the bitmap image in format described by the GetInfo method. See Bitmap File Format for more details.