public override ImageData Read(IBinaryStream stream, ImageMetaData info) { var reader = new GrpReader(stream, (GrpMetaData)info); var pixels = reader.Unpack(); return(ImageData.Create(info, reader.Format, reader.Palette, reader.Data)); }
public override ImageData Read(IBinaryStream stream, ImageMetaData info) { using (var reader = new GrpReader(stream, (GrpMetaData)info)) { reader.Unpack(); return(ImageData.Create(info, reader.Format, null, reader.Data)); } }
public override ImageData Read(Stream stream, ImageMetaData info) { using (var reader = new GrpReader (stream, (GrpMetaData)info)) { reader.Unpack(); return ImageData.Create (info, reader.Format, null, reader.Data); } }