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
 TImageEnVect HDC

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
fisad Posted - Aug 02 2013 : 07:21:24
Is possible draw on a TImageEnVect as a HDC?
For example: I have a procedure "RenderObjectsToDC" to obtain the objects drawn on a component and would like to transfer these objects to an TImageEnVect.

PD: I try ImageEnVect.Bitmap.Canvas.Handle and ImageEnVect.IEBitmap.Bitmap.Canvas.Handle, but nothing happen!.

Thanks in advance!
3   L A T E S T    R E P L I E S    (Newest First)
fisad Posted - Aug 09 2013 : 13:36:40
Thanks to all.
xequte Posted - Aug 05 2013 : 13:46:50
Have you tried copying the content to a bitmap, and adding that as an object to TImageEnVect?

c := TCanvas.Create;
c.Handle := Your HDC...
try
  Bitmap.Width := ...;
  Bitmap.Height := ...;
  r := Rect(0, 0, Bitmap.Width, Bitmap.Height);
  Bitmap.Canvas.CopyRect(r, c, r);
finally
  c.Free;
end;

ImageEnVect1.AddNewObject;
ImageEnVect1.ObjKind[IEV_PREVIOUS_INSERTED_OBJECT] := iekBitmap;
ImageEnVect1.SetObjRect(IEV_PREVIOUS_INSERTED_OBJECT, Rect(10, 10, 100, 100));
ImageEnVect1.ObjSetTBitmap(IEV_PREVIOUS_INSERTED_OBJECT, Bitmap);


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Cocodrilo Posted - Aug 05 2013 : 00:53:27
maybe ImageEnVect.Update will help?