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
 SetImage call for TImageEnView?

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
cpstevenc Posted - Apr 23 2013 : 08:40:03
I have a TImageEnMView and TImageEnView.

I can do this with the TImageEnMView to set image indexs for thumbs
to be a bitmap from my imagelist (JVCL TJVImageList)

myTImageEnMView.SetImage(0,Images.Items[0].bitmap);

This works.. but I can't seem to find how to do something like this
with a TImageEnView? I need to be able to load images from list,
and just stuck at a wall here. Know it has to be simple,
but I am at that place of just over looking something now it seems.



4   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 28 2013 : 18:54:40
Thanks William,

Specifically speaking, when loading an image into an ImageEnView (through normal methods) Update will be called automatically.

However you must call Update when modifying the underlying Bitmap/IEBitmap through your own code.


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
w2m Posted - Apr 23 2013 : 10:02:09
When you load or assign an image to ImageEnView it is always good practice to call update. It does not slow down your application and ensures the image is displayed.

William Miller
cpstevenc Posted - Apr 23 2013 : 09:40:57
Thanks!

I ended up trying this but did not have the update call.
w2m Posted - Apr 23 2013 : 09:25:01
There is no specific method to set the image with ImageEnView so just assign its bitmap:
procedure TForm1.Button1Click(Sender: TObject);
var
  iIndex: integer;
begin
   iIndex := StrToInt(Edit1.Text);
   ImageEnView1.Bitmap.Assign(JvImageList1.Items[iIndex].Bitmap);
   ImageEnView1.Update;
end;

or in your case:
ImageEnView1.Bitmap.Assign(JvImageList1.Items[0].Bitmap);

William Miller
Adirondack Software & Graphics
Email: w2m@frontiernet.net
EBook: http://www.imageen.com/ebook/
Apprehend: http://www.frontiernet.net/~w2m/index.html