Archicad 28 C++ API
Loading...
Searching...
No Matches
API_MimePicture Struct Reference

Structure for picture conversion using MIME identifier. More...

#include <APIdefs_Goodies.h>

Public Attributes

const char * mimeIn
 MIME type of the image to be converted (e.g. "image/png", null-terminated C string)
 
GSHandle inputHdl
 contains the input image handle
 
const char * mimeOut
 the requested MIME type of the output image (e.g. "image/jpeg", null-terminated C string)
 
GSHandle outputHdl
 on return contains the output image
 
bool inContainsMime
 for library part preview pictures, where the input handle (inputHdl) starts with a MIME type
 
API_ColorDepthID outDepth
 the requested output pixel depth (APIColorDepth_FromSourceImage) means to use the same pixel depth the input image has)
 

Detailed Description

Structure for picture conversion using MIME identifier.

Remarks
This structure is used as a parameter of the ACAPI_Conversion_ConvertMimePicture goody function to convert a picture from a given format into another using MIME types. You can also set a special format on Windows in the mimeOut field: "vnd/DIB" results in outputHdl containing a device independent bitmap. In some cases the image handle contains the MIME type as well. For example pictures in Library Parts are stored in a handle that begins with the '\0'-terminated MIME type string, and then follows the image itself. If inputHdl is in this format, set the inContainsMime field to true. In this case the mimeIn parameter is ignored.