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
 Version 8.1.0 ImageEnLayerMView

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
w2m Posted - Sep 18 2018 : 10:01:02
Hi Nigel,

I am testing the new ImageEnLayerMView component. Nice work! Using this component rather than a ListView is almost entirely automatic which takes far less code that using a ListView. The components events are not described in the help file. Can you add that please?

I think there should be some flexibility to format the layers info text and hopefully you agree.

This is what I have been using for TListView:
iListItem.Caption := IntToStr(iListItem.Index);
iListItem.SubItems.Add(GetLayerKindStr(ImageEnView));
iListItem.SubItems.Add(GetShapeKindStr(ImageEnView));
iListItem.SubItems.Add(ImageEnView.Layers[i].Name);
iListItem.SubItems.Add(IntegerToString(ImageEnView.Layers[i].PosX));
iListItem.SubItems.Add(IntegerToString(ImageEnView.Layers[i].PosY));
iListItem.SubItems.Add(IntegerToString(ImageEnView.Layers[i].Width));
iListItem.SubItems.Add(IntegerToString(ImageEnView.Layers[i].Height));

Add Layer Kind and Shape Kind text and alllow adjustment of
PosX and PosY. Width, Height (0,0; 640,480) text to PosX: 0 PosY: 0 Width: 640, Height: 360 in an event.

I also noticed that the background image is not shown until a second layer is added. With only a background layer the component draws a blank thumbnail. Shouldn't the background be drawn from the background layer bitmap instead of being blank?

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
4   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Sep 23 2018 : 09:50:47
Thanks Nigel,

ReadLayers corrects the problem.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
xequte Posted - Sep 23 2018 : 03:46:00
Hi Bill

Some direct operations on the ImageEnView.IEBitmap (such as assigning it via ImageEnMView1.CopyToIEBitmap() do not trigger a bitmap change event, and so the LayerMView is not updated automatically.

These kind of programmatic operations require you to call ImageEnLayerMView1.ReadLayers();

I will improve the documentation.



Nigel
Xequte Software
www.imageen.com
w2m Posted - Sep 22 2018 : 10:13:34
You can test it with https://www.imageen.com/ieforum/attach/w2m/2018922101655_BrushTools.zip. When you open an image the ImageEnLayerMView thumbnail is just a white image, until you add a second layer. After adding a second layer, the background thumbnail is shown correctly. This is also duplicated in your layers demo.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
xequte Posted - Sep 20 2018 : 01:12:08
Hi Bill

Thanks for the suggestion. In 8.1.1 you will be able to customize the text further.

How do I reproduce the background image issue?




Nigel
Xequte Software
www.imageen.com