public void EncodeTexture(BitmapSource bitmap, RawTexture.DataFormat targetFormat) { var bgrData = bitmap.GetBgr24Data(); Model.Encode(bgrData, bitmap.PixelWidth, bitmap.PixelHeight, targetFormat); Invalidate(); }
public void EncodeTexture(BitmapSource bitmap, RawTexture.DataFormat targetFormat) { var bgrData = bitmap.GetBgr24Data(); Model.Encode(bgrData, bitmap.PixelWidth, bitmap.PixelHeight, targetFormat); Invalidate(); }