Thanks
Code: Select all
if (o=IDataTypes->NewDTObject((APTR)filename, NULL))
DTA_SourceType, DTST_FILE,
DTA_GroupID, GID_PICTURE,
PDTA_Remap, TRUE,
PDTA_Screen, screen,
PDTA_FreeSourceBitMap, TRUE,
PDTA_DestMode, PMODE_V43,
PDTA_UseFriendBitMap, TRUE,
OBP_Precision, PRECISION_IMAGE,
TAG_DONE))
{
drawinfo = IDataTypes->ObtainDTDrawInfoA(o, TAG_DONE);
IDataTypes->DrawDTObjectA(drawspacewindow->RPort, o, startx, starty, width, height, 0, 0, TAG_DONE);
IDataTypes->ReleaseDTDrawInfo(o, drawinfo);
IDataTypes->DisposeDTObject(o);
}