示例#1
0
 public void CopyFrom(ImageEncoder encoder)
 {
     this.mHeader = encoder.mHeader;
     this.mColors = encoder.mColors;
     this.mXOR    = encoder.mXOR;
     this.mAND    = encoder.mAND;
 }
示例#2
0
 internal IconImage()
 {
     mEncoder = new BMPEncoder();
 }
示例#3
0
 internal unsafe void Read(Stream stream, int resourceSize)
 {
     switch (GetIconImageFormat(stream))
     {
         case IconImageFormat.BMP:
         {
             mEncoder = new BMPEncoder();
             mEncoder.Read(stream, resourceSize);
             break;
         }
         case IconImageFormat.PNG:
         {
             mEncoder = new PNGEncoder();
             mEncoder.Read(stream, resourceSize);
             break;
         }
     }
 }
示例#4
0
 public void CopyFrom(ImageEncoder encoder)
 {
     this.mHeader    = encoder.mHeader;
     this.mColors    = encoder.mColors;
     this.mXOR       = encoder.mXOR;
     this.mAND       = encoder.mAND;
 }