Skip to main content

Results for: drawing


How to: Use a Drawing Tool. 02/15/2019; 4 minutes to read +2; In this article. The Image Editor has freehand drawing and erasing tools that all work in the same way. You select the tool and, if necessary, select foreground and background colors and size and shape options. You then move the pointer to the image and click or drag to draw and erase.

Examples. The following example creates a horizontal LinearGradientBrush; the color components change linearly as you move from a horizontal coordinate of 0 to a horizontal coordinate of 200.For example, a point whose first coordinate is halfway between 0 and 200 will have a blue component that is halfway between 0 and 255.

Imports System.Drawing Imports System.Drawing.Imaging Class Example_SetJPEGQuality Public Shared Sub Main() Dim myBitmap As Bitmap Dim myImageCodecInfo As ImageCodecInfo Dim myEncoder As Encoder Dim myEncoderParameter As EncoderParameter Dim myEncoderParameters As EncoderParameters ' Create a Bitmap object based on a BMP file. ...

Examples. The following code example is designed for use with Windows Forms, and it requires PaintEventArgse, an OnPaint event object. The code performs the following actions: Creates a rectangle, from which the arc is defined.

member this.PaperSize : System.Drawing.Printing.PaperSize with get, set Public Property PaperSize As PaperSize Property Value. PaperSize. A PaperSize that represents the size of the paper. The default is the printer's default paper size. Exceptions. InvalidPrinterException.