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
 Version 8.1.0 ImageEnLayerMView
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

w2m

USA
1990 Posts

Posted - Sep 18 2018 :  10:01:02  Show Profile  Reply
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

xequte

39230 Posts

Posted - Sep 20 2018 :  01:12:08  Show Profile  Reply
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
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 22 2018 :  10:13:34  Show Profile  Reply
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
Go to Top of Page

xequte

39230 Posts

Posted - Sep 23 2018 :  03:46:00  Show Profile  Reply
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
Go to Top of Page

w2m

USA
1990 Posts

Posted - Sep 23 2018 :  09:50:47  Show Profile  Reply
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
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: