示例#1
0
 public SimpleImage(SimpleImage originalImage, byte[] byteArray)
 {
     this.ImageWidth    = originalImage.ImageWidth;
     this.ImageHeight   = originalImage.ImageHeight;
     this.ImageStride   = originalImage.ImageStride;
     this.ImageByteSize = originalImage.ImageByteSize;
     this.BitmapWidth   = originalImage.BitmapWidth;
     this.BitmapHeight  = originalImage.BitmapHeight;
     this.ByteArray     = byteArray;
 }
示例#2
0
 public SimpleImage(SimpleImage originalImage)
 {
     this.ImageWidth    = originalImage.ImageWidth;
     this.ImageHeight   = originalImage.ImageHeight;
     this.ImageStride   = originalImage.ImageStride;
     this.ImageByteSize = originalImage.ImageByteSize;
     this.BitmapWidth   = originalImage.BitmapWidth;
     this.BitmapHeight  = originalImage.BitmapHeight;
     this.ByteArray     = new byte[this.ImageByteSize];
     for (int i = 0; i < this.ImageByteSize; i++)
     {
         this.ByteArray[i] = originalImage.ByteArray[i];
     }
 }