Esempio n. 1
0
 public static Bitmap ToBitmap(this ITexture texture)
 {
     byte[] image = texture.DecodeTexture();
     if (image == null)
     {
         return(null);
     }
     return(ToBitmap(image, texture.Width, texture.Height));
 }
Esempio n. 2
0
 public static byte[] ToPng(this ITexture texture)
 {
     byte[] image = texture.DecodeTexture();
     if (image == null)
     {
         return(null);
     }
     return(CreatePng(image, texture.Width, texture.Height));
 }