예제 #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));
 }
예제 #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));
 }