public void CopyFrom(ImageEncoder encoder) { this.mHeader = encoder.mHeader; this.mColors = encoder.mColors; this.mXOR = encoder.mXOR; this.mAND = encoder.mAND; }
internal IconImage() { mEncoder = new BMPEncoder(); }
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; } } }