public void Draw(Direct2DEditor editor) { if (!_pointerPosition.Visible) { return; } var bitmap = _pointerShape?.GetBitmap(); if (bitmap == null) { return; } var rect = new Rectangle(_pointerPosition.Position.X, _pointerPosition.Position.Y, (int)bitmap.Size.Width, (int)bitmap.Size.Height); editor.DrawImage(bitmap, rect); }
public void Draw(Direct2DEditor Editor, Point Location = default) { if (!_pointerPosition.Visible) { return; } var bmp = _pointerShape?.GetBitmap(); if (bmp == null) { return; } var rect = new Rectangle(_pointerPosition.Position.X + Location.X, _pointerPosition.Position.Y + Location.Y, (int)bmp.Size.Width, (int)bmp.Size.Height); Editor.DrawImage(new Direct2DImage(bmp), rect); }