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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to draw white color as a background of image.

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
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.
2   L A T E S T    R E P L I E S    (Newest First)
adisonx Posted - Jan 06 2017 : 02:24:08
Thank you
xequte Posted - Jan 05 2017 : 17:13:09
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