Esempio n. 1
0
 private protected override void UpdatePalette()
 {
     currentImage = sourceImage;
     GraphicsUtils.SwapColors(currentImage, Palette);
 }
Esempio n. 2
0
 internal StaticSprite(Bitmap source, GraphicsID graphicsId, int width, int sourceTilesPerRow)
 {
     sourceImage  = source.Clone(GraphicsUtils.GetGraphicSourceRectangle(graphicsId, width, sourceTilesPerRow), source.PixelFormat);
     currentImage = sourceImage;
 }