[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Document.Section.GifImage.CreateRead

CreateRead Method

CreateRead(BinaryReader, short, Page, IImageConverterService)

Return an instance of the GifImage received from a BinaryReader.

Declaration
public static GifImage CreateRead(BinaryReader reader, short fileVersion, Page pageObj, IImageConverterService imageConverterService)
Parameters
Type Name Description
BinaryReader reader

Reader containing the binary data of GifImage.

short fileVersion

The type of data in the stream.

Page pageObj

The page.

IImageConverterService imageConverterService

Service that converts image data from one format to another.

Returns
Type Description
GifImage

A new GifImage instance.

Examples
private void AddImageToPage(Page page, string filename)
{
	var fileStream = new FileStream(filename, FileMode.Open);
	var binaryReader = new BinaryReader(fileStream);
	var result = GifImage.CreateRead(binaryReader, Globals.DocumentVersion, page, new GcImageConverterService(CustomFontResolver.Instance));
}