Alexandria.Engines.Sciagi.Resources.PictureRenderer.DrawCel C# (CSharp) Метод

DrawCel() публичный Метод

Enable visual and priority layers, set the priority to that specified by the cel, then draw a PictureCel.
public DrawCel ( PictureCel cel ) : void
cel PictureCel
Результат void
        public void DrawCel(PictureCel cel)
        {
            Canvas.Priority.SetColor(checked((byte)cel.Priority));
            DrawPriority = true;
            DrawVisual = true;
            DrawImage(cel.Offset, cel.Dimensions, cel.Indices, 0, cel.Pitch, cel.MaskIndex);
        }

Usage Example

Пример #1
0
 /// <summary>Draw the cel.</summary>
 /// <param name="renderer"></param>
 public override void Render(PictureRenderer renderer)
 {
     renderer.DrawCel(Cel);
 }
All Usage Examples Of Alexandria.Engines.Sciagi.Resources.PictureRenderer::DrawCel