ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to draw white color as a background of image.
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

adisonx

Thailand
29 Posts

Posted - Jan 04 2017 :  23:05:10  Show Profile  Reply
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.

xequte

38610 Posts

Posted - Jan 05 2017 :  17:13:09  Show Profile  Reply
Hi

Also resize the background image using:

his->ImageEnView->IEBitmap->Resize();

http://www.imageen.com/help/TIEBitmap.Resize.html

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

adisonx

Thailand
29 Posts

Posted - Jan 06 2017 :  02:24:08  Show Profile  Reply
Thank you
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: