1 / 9

Objective 8.01 Understand coordinate systems. (3%)

Objective 8.01 Understand coordinate systems. (3%). Computer Programming I Summer 2011. Objective/Essential Standard. Essential Standard 8.00 Apply procedures to develop graphics applications Indicator 8.01 Understand coordinate systems. (3%). Coordinate Systems.

fionn
Télécharger la présentation

Objective 8.01 Understand coordinate systems. (3%)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Objective 8.01 Understand coordinate systems. (3%) Computer Programming I Summer 2011

  2. Objective/Essential Standard Essential Standard8.00 Apply procedures to develop graphics applications Indicator8.01 Understand coordinate systems. (3%)

  3. Coordinate Systems With Visual Studio, any object, whether it is a form or a label uses the same coordinate system. The top left corner, or the originis 0, 0. The bottom right corner is the width and height of the control (in this case, the label). 0, 0 Width, Height

  4. Coordinate Systems • The default coordinate system is made up of rows and columns of pixels. • The pixels are the smallest points you can locate on the form.

  5. Coordinate Systems As you increase the x, you move across to the right. As you increase the y, you move down. x = 50 (0, 0) (50, 50) Y = 50

  6. Coordinate Systems • You can also indicate the width of the object by using its Widthproperty. • Likewise you can indicate the height of the object using its Heightproperty. 0, 0 lblDraw.Width lblDraw.Height

  7. Coordinate Systems To indicate the form’s heightmaxHeight= Me.Height To indicate the form’s widthmaxWidth= Me.Width You can use the Height and Width properties to setrelative positions. Form’s Width and Height

  8. Summary • Vocabulary • Origin • Coordinate System • Width Property • Height Property • Code • MaxHeight = Me.Height • For a form • MaxHt= lblDraw.Heigth • For a label • MaxWidth = Me.Width • For a form • MaxWidth = lblDraw.Width • For a label

  9. Conclusion This PowerPoint provided an overview of coordinate systems in Visual Studio.

More Related