Creates a preview bitmap of the specified entities and returns a byte array of the bitmap.
.NET Syntax
COM native C++ | |
---|
HRESULT GetPreviewOfEntities(
VARIANT EntitiesArray,
,
dsBitmapFormat_e Format,
dsPreviewRange_e PreviewRange,
const dsString& NamedView,
,
dsMathPoint* WinMin,
,
dsMathPoint* WinMax,
,
long Width,
,
long Height,
,
VARIANT* BitmapByteArray
,
VARIANT_BOOL* RetVal
) |
C++ | |
---|
DSRESULT GetPreviewOfEntities(
VARIANT EntitiesArray,
,
dsBitmapFormat_e Format,
dsPreviewRange_e PreviewRange,
BSTR NamedView,
,
IMathPoint* WinMin,
,
IMathPoint* WinMax,
,
LONG Width,
,
LONG Height,
,
VARIANT* BitmapByteArray
,
bool* RetVal
) |
Parameters
- EntitiesArray
- Array of entities for the preview bitmap
- Format
- Format of the preview bitmap as defined in dsBitmapFormat_e
- PreviewRange
- Preview bitmap range as defined in dsPreviewRange_e
- NamedView
- Name of the view if PreviewRange is set to dsPreviewRange_NamedView
- WinMin
- Corner of the window area if PreviewRange is set to dsPreviewRange_SpecifyWindow; otherwise, a null value
- WinMax
- Opposite corner of the window area if PreviewRange is set to dsPreviewRange_SpecifyWindow; otherwise, a null value
- Width
- Width of the preview bitmap
- Height
- Height of the preview bitmap
- BitmapByteArray[out]
- Byte array of the preview bitmap
Parameters
- RetVal[out] or Return Value
- True if the preview bitmap is created, false if not
See Also
Availability
DraftSight V1R4.0