adisonx |
Posted - Jan 04 2017 : 23:05:10 How to draw white rectangular as a background of image and larger than image size. I have an image size 1000x1000 after load an image I want to create white background size 2000x2500 (larger than image size) and image is on position 0,0 of the background. I use the code.
//after load image ....
int hBackGround = this->ImageEnView->AddNewObject(true); this->ImageEnView->ObjKind[hBackGround] = iekBOX; this->ImageEnView->SetObjRect(hBackGround,Rect(0, 0, 2000, 2500)); this->ImageEnView->SetObjBackTo(hBackGround,-1); this->ImageEnView->LayersMergeAll();
but it 's not work for me.
Thank you. |