public DrawGroupSprite(ushort type, uint flags, PixelOffset spriteOffset, WorldOffset objectOffset, SpriteFrame frame) { m_Type = type; m_Flags = flags; m_SpriteOffset = spriteOffset; m_ObjectOffset = objectOffset; m_Sprite = frame; m_Bitmap = (Bitmap)frame.BitmapData.BitMap.Clone(); if ((m_Flags & 0x1) == 0x1) { m_Bitmap.RotateFlip(RotateFlipType.RotateNoneFlipX); } }