Page 1 of 1

Add loadIntoMemory parameter to CreateGdPictureImageFromStream

Posted: Thu Jul 27, 2017 5:26 am
by accudave
Please add an overload to CreateGdPictureImageFromStream to allow the api to utilize an existing Stream without making a copy of it, such as when using a pre-existing MemoryStream, or FileStream. Currently GdPicture will always make a copy of the stream, and is a problem when working with large files (300 DPI / hundred pages or so).

This parameter would behave like the one in CreateGdPictureImageFromFile

Re: Add loadIntoMemory parameter to CreateGdPictureImageFromStream

Posted: Tue Mar 27, 2018 9:30 am
by Loïc
Hi,

In my opinion there is no sense to do that. A steam is an abstraction of a data flow, if you need to copy data into memory before loading, just create a memorystream and pass such stream to the mentioned method.

With best regards,

Loïc