Ejemplo n.º 1
0
 public static Bitmap CreateBitmap(L1Spr.Frame FrameData, byte[] bmpdata)
 {
     if (bmpdata == null)
     {
         return((Bitmap)null);
     }
     return(ImageConvert.CreateBMP(FrameData.width, FrameData.height, bmpdata, 0, (int)FrameData.maskcolor));
 }
Ejemplo n.º 2
0
        public static Bitmap Load_IMG(byte[] imgdata)
        {
            int int16_1   = (int)BitConverter.ToInt16(imgdata, 0);
            int int16_2   = (int)BitConverter.ToInt16(imgdata, 2);
            int MaskColor = (int)BitConverter.ToInt16(imgdata, 4) == 1 ? (int)BitConverter.ToUInt16(imgdata, 6) : -1;

            return(ImageConvert.CreateBMP(int16_1, int16_2, imgdata, 8, MaskColor));
        }