/// <summary> /// Creates a new PixelBufferDescriptor referencing a compressed image in main memory. /// </summary> /// <param name="linearImage">LinearImage to use for data.</param> /// <param name="format">Compressed format of the image.</param> /// <param name="imageSize">Compressed size of the image.</param> public PixelBufferDescriptor( LinearImage linearImage, CompressedPixelDataType format, int imageSize) { LinearImage = linearImage; ImageSize = imageSize; CompressedFormat = format; Type = PixelDataType.Compressed; Alignment = 1; }
/// <summary> /// Creates a new PixelBufferDescriptor referencing a compressed image in main memory. /// </summary> /// <param name="buffer">Buffer containing the image.</param> /// <param name="format">Compressed format of the image.</param> /// <param name="imageSize">Compressed size of the image.</param> public PixelBufferDescriptor( byte[] buffer, CompressedPixelDataType format, int imageSize) { Buffer = buffer; ImageSize = imageSize; CompressedFormat = format; Type = PixelDataType.Compressed; Alignment = 1; }