DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Expand ModelsModels
Expand DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Expand General GeometryGeneral Geometry
Expand ModelModel
Expand ViewView
Collapse General ComputingGeneral Computing
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > API Reference > General Computing > IBitmap 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.