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

wesleybobato

Brazil
367 Posts

Posted - Jan 20 2016 :  12:36:44  Show Profile  Reply
Hi Nigel

I found a problem with ImageEN.IO
When I carry a PNG file with Alpha Channel.
Except for Stream and an Error Occurs.

Example
----------------------------------------------------------------------------
var
  fs: TStream;
begin
  fs: = TStream.Create;
  ImageEnView1.IO.LoadFromFile ('C: \ Users \ Wesley \ Desktop \ PNG \ Demo \ Demo.png');
  ImageEnView1.IO.SaveToStreamPNG (fs);
  fs.Free;
end;
----------------------------------------------------------------------------

Thank you for your Attention.

w2m

USA
1990 Posts

Posted - Jan 20 2016 :  12:45:58  Show Profile  Reply
Can you explain this better and include all the code? Your code does not do anything with the stream so the code does not make any sense. You load the image from a file, then save it to a stream and free then stream, so the code does not do anything except load the file.

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

wesleybobato

Brazil
367 Posts

Posted - Jan 20 2016 :  12:57:26  Show Profile  Reply
Hi Bill.

Thank's for your attention.

After Save Image in an Object Stream I Process, a Code Huge.
When I carry JPEG work.

The problem with this PNG.

Thank you again.
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jan 20 2016 :  13:00:10  Show Profile  Reply
Sorry but without seeing all the code I can not be of much help. Generally however I use a TMemoryStream, not TStream, but in your case I am not sure if it will help.

Are you setting the fs.position before trying to access the fs?

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

wesleybobato

Brazil
367 Posts

Posted - Jan 20 2016 :  13:04:51  Show Profile  Reply
Hi Bill.
thank you
I Replaces TStream by MemoryStream
Sorry My Fault.
A Great Day.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: