Exemplo n.º 1
0
 /// <summary>
 /// Populates the <seealso cref="AssetData"/> byte array with a JPEG2000
 /// encoded image created from the data in <seealso cref="Image"/>
 /// </summary>
 public override void Encode()
 {
     using (var writer = new OpenJpegDotNet.IO.Writer(Image.ExportBitmap()))
     {
         AssetData = writer.Encode();
     }
 }