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
 ImageenMview Text
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

pierrotsc

USA
499 Posts

Posted - Nov 19 2018 :  10:26:34  Show Profile  Reply
Right now, i see a thumbnail with background, layer 1:image, layer2:image and their sizes.
I would like instead of layer 1:image to show something different.
This is the code i have but it has no effect. Advice ?

  ChannelsView.IOOptionsEx := ChannelsView.IOOptionsEx + [ ieixWantParams ];
  ChannelsView.ImageBottomText[0] := 'RGB';
  ChannelsView.ImageBackground[0] := clMedgray;
  ChannelsView.TopTextFont.Color := clblack;
  ChannelsView.ImageBottomText[1] := 'Red';
  ChannelsView.ImageBackground[1] := clMedgray;
  ChannelsView.ImageBottomText[2] := 'Green';
  ChannelsView.ImageBackground[2] := clMedgray;
  ChannelsView.ImageBottomText[3] := 'Blue';
  ChannelsView.ImageBackground[3] := clMedgray;
  ChannelsView.SelectedImage := 0;
  ChannelsView.Update;


Thanks
Pierre

xequte

39052 Posts

Posted - Nov 19 2018 :  16:16:23  Show Profile  Reply
Hi Pierre

The description for ImageBackground is not good. Really ImageBackground is only used for the background color for frames of a GIF image.

What is it you are looking to do?

You'd probably be better to use the OnImageDraw2 event to customize painting of the thumbnail:

https://www.imageen.com/help/TImageEnMView.OnImageDraw2.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

pierrotsc

USA
499 Posts

Posted - Nov 19 2018 :  16:33:45  Show Profile  Reply
Thanks Nigel. i was really trying to change the text. I found my answer. I just have to name the layer and it shows correctly. digging in the manual help.
Best
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: