Exemplo n.º 1
0
 public void DrawStretched(Graphics g, Rectangle targetRect)
 {
     if (this.cursor == null && std_cursor != (StdCursor)(-1))
     {
         this.cursor = XplatUI.DefineStdCursorBitmap(std_cursor);
     }
     if (this.cursor != null)
     {
         g.DrawImage(this.cursor, targetRect, new Rectangle(0, 0, this.cursor.Width, this.cursor.Height), GraphicsUnit.Pixel);
     }
 }
Exemplo n.º 2
0
 public void Draw(Graphics g, Rectangle targetRect)
 {
     if (this.cursor == null && std_cursor != (StdCursor)(-1))
     {
         this.cursor = XplatUI.DefineStdCursorBitmap(std_cursor);
     }
     if (this.cursor != null)
     {
         // Size of the targetRect is not considered at all
         g.DrawImage(this.cursor, targetRect.X, targetRect.Y);
     }
 }