Add loadIntoMemory parameter to CreateGdPictureImageFromStream

Feature Requests for GdPicture.NET.
Post Reply
accudave
Posts: 21
Joined: Tue May 12, 2015 6:07 pm

Add loadIntoMemory parameter to CreateGdPictureImageFromStream

Post by accudave » Thu Jul 27, 2017 5:26 am

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Add loadIntoMemory parameter to CreateGdPictureImageFromStream

Post by Loïc » Tue Mar 27, 2018 9:30 am

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

Post Reply

Who is online

Users browsing this forum: Amazon [Bot] and 1 guest