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
 SaveToStreamPNG

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
wesleybobato Posted - Jan 20 2016 : 12:36:44
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.
4   L A T E S T    R E P L I E S    (Newest First)
wesleybobato Posted - Jan 20 2016 : 13:04:51
Hi Bill.
thank you
I Replaces TStream by MemoryStream
Sorry My Fault.
A Great Day.
w2m Posted - Jan 20 2016 : 13:00:10
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
wesleybobato Posted - Jan 20 2016 : 12:57:26
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.
w2m Posted - Jan 20 2016 : 12:45:58
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