wheextreme.blogg.se

Simple drawing images
Simple drawing images













simple drawing images simple drawing images

These parameters include not only the x-coordinate and the y-coordinate of the rectangle, which determine the location of its upper-left corner, but also the width and the height of the rectangle, which determine its size and proportions.

simple drawing images

  • To draw a rectangle, you use the DrawRectangle operation, and you specify its parameters, which are values that determine how the rectangle looks.
  • You can also use these properties later to specify a different border color and border thickness for your next shape.
  • simple drawing images

    You then use the PenColor and PenWidth properties to specify the border color and border thickness of the first shape that you want to draw.When you set the width and the height, make sure to specify an area that is large enough to hold all of the shapes that you want to draw.You start by setting the title, the width, and the height of the graphics window.PenWidth?By specifying this property,you can draw shapes whose borders are whatever thickness you choose.īrushColor?By specifying this property, you can fill the shapes that you draw with whatever colors you choose. PenColor?By specifying this property, you can draw shapes whose borders are whatever colors you choose. You can enhance the shapes that you create if you specify certain properties of the When you run the program below, a graphics window appears with the properties that you specified, instead of the black text window. Height, Width, and BackgroundColor properties, respectively. Similarly, you can modify the height, width, and background color of the graphics window by specifying the Title property of the GraphicsWindow object. For example, you can set its title by using the You can also modify the look and feel of the graphics window by specifying a range of properties. Similarly, you can hide the graphics window by using the GraphicsWindow.Hide() statement. You can display the graphics window by typing the statement GraphicsWindow.Show() in the editor window. GraphicsWindow.Title = "A Graphics Window"















    Simple drawing images