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 insert image inside object

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
dracola Posted - Mar 23 2016 : 01:24:45
How to insert image inside object with transparent outside the object???

this my code so far :
//add object ellips
ImageEnVect1.AddNewObject(iekELLIPSE, Rect(50, 50, 500, 500), clRed);
ImageEnVect1.ObjPenWidth[0]:=22;

//insert image to object
ImageEnVect1.ObjKind[0]:= iekBITMAP;
ImageEnVect1.SetObjBitmapFromFile(0,'C:\Image1.jpg');
ImageEnVect1.Update;

result is like this:






What i want is like this :




How to make transparent outside the object?
Thank's & best rgds
3   L A T E S T    R E P L I E S    (Newest First)
dracola Posted - Apr 03 2016 : 21:29:38
Thank you
I try it now.
Appreciate the good explanation.
xequte Posted - Mar 27 2016 : 22:10:01
Hi

You should load the image into a TIEBitmap, then draw an ellipse on the alpha channel (see the demo code at http://www.imageen.com/help/TIEBitmap.CanvasCurrentAlpha.html ). Assign that image to your ImageEnVect object.

Let us know if you need more direction.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Mar 23 2016 : 07:14:53
The image must be 32-bit transparent image and probably should be a png file type. jpeg file types are 24-bit with no alpha channel.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development