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
 What do we get in TIEBitmap...

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
yogiyang Posted - Mar 14 2015 : 08:08:14
Hello,

As I could not type the whole question in Subject so I have added ... at the end.

The actual there are two question:

1. What do we get when we try to retrieve IEBitmap from ImageEnView control which contains multiple Layers and Current Layer is other then the Background Layer?

What I am getting is only a patch of Gray color.

2. I have also observed that if we assign an ImageEnView control containing multiple Layers to an empty ImageEnView control only the background is copied over. Why?

TIA

Yogi Yang


Yogi Yang
9   L A T E S T    R E P L I E S    (Newest First)
yogiyang Posted - Mar 16 2015 : 23:55:58
It seems I found the problem somewhere else!!!!

When I copied the Form from Roys sample folder to my project's folder and added it to my Delphi Project. For some unknown reasons all the events of various controls were disconnected!!??!!

On correcting this it started working.

But...but.

The image is not loading in the control at the moment.

Working on this though.

Regards,


Yogi Yang
yogiyang Posted - Mar 16 2015 : 23:14:07
Bill,
quote:
Put a break point on the offending line and run in debug mode. When the cursor is on The Image look to see if it is nil in the hint. Also look at imgView.LayersCurrent].Bitmap to see if it is nil.



On the offending line the variable TheImage is nil while the source contains an Image in it.

Now what?

TIA


Yogi Yang
yogiyang Posted - Mar 16 2015 : 23:11:11
Bill,

The error messages shown by Delphi and the error message shown by application when we run its exe directly are attached here.

TIA







Yogi Yang
w2m Posted - Mar 16 2015 : 07:35:26
Put a break point on the offending line and run in debug mode. When the cursor is on The Image look to see if it is nil in the hint. Also look at imgView.LayersCurrent].Bitmap to see if it is nil.

If either of these is nil for some reason there will be an exception. What exception are you getting?... be specific... just telling us you get an error does not help us at all to assist you.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
yogiyang Posted - Mar 16 2015 : 07:13:35
The code that I am trying to use:

var
TheImage, Img: TIEBitmap;
begin
  imgView.LayersAdd;
  imgView.Layers[1].Assign(MainForm.ImageEnViewMain.CurrentLayer);
  TheImage.Assign(imgView.Layers[imgView.LayersCurrent].Bitmap);   //<= This is giving error
end;

The last line is giving error in spite of the fact that both TheImage and imgView.Layers[imgView.LayersCurrent].Bitmap are TIEBitmap.

I don't understand as to why?

TIA




Yogi Yang
yogiyang Posted - Mar 16 2015 : 05:47:45
Yes Bill, They contain layers.

I am hoping Roy will help me out.

Yogi Yang
w2m Posted - Mar 14 2015 : 10:51:48
Do either of the components contain layers? If so then I think Roy's curves only works on base layer.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
yogiyang Posted - Mar 14 2015 : 10:28:59
Here is the code:

imgView.Assign(ImageEnViewMain)

But then this code as done by Roy M Klever:

TheImage.Assign(imgView.IEBitmap);
TheImage.PixelFormat := ie24RGB;
imgView.IEBitmap.Assign(TheImage);

is then giving error.

Actually what I am trying to do is integreate Roy M Klever fantastic Curves Tool into my software.

TIA


Yogi Yang
w2m Posted - Mar 14 2015 : 10:10:30
1. Show your code... the bitmap is from the current layer.

2. If you assign one ImageEnView to another you should get all layers and IO params according to the help file:
// Copy content from another TImageEnView, including layers and IO params
ImageEnView1.Assign(ImageEnView2);
// Copy only the image of another TImageEnView
ImageEnView1.Assign(ImageEnView2.IEBitmap);

When I assign here: ImageEnView2.Assign(ImageEnView1); ImageEnView2 is not gray. ImageEnView2 contains all bitmaps and layers from ImageEnView1; I do not have to call ImageEnView2.Update here but it may be necessary to be sure the control refreshes.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development