SlideShare a Scribd company logo
H O N O R S C O M P U T E R P R O G R A M M I N G I
Module 14
Objective/Essential Standard
 Essential Standard
 8.00 Apply procedures to develop graphics applications
 Indicator
 8.01 Understand coordinate systems. (3%)
 8.02 Apply Procedures to Create Picture Boxes Using Images.
(5%)
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 origin is 0, 0.
 The bottom right corner is the width and height of the
control (in this case, the label).
0, 0
Width, Height
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.
Coordinate Systems
 As you increase the x, you move across to the right.
 As you increase the y, you move down.
(0, 0)
x = 50
Y = 50
(50, 50)
Coordinate Systems
 You can also indicate the width of the object by using its
Width property.
 Likewise you can indicate the height of the object using
its Height property.
0, 0
lblDraw.Width
lblDraw.Height
Coordinate Systems
 To indicate the form’s height
maxHeight = Me.Height
 To indicate the form’s width
maxWidth = Me.Width
 You can use the Height and
Width properties to set
relative positions.
Form’s Width
and Height
Adding Images to Your Project
1. In the Solution Explorer,
double-click My Project
2. The following is displayed.
Adding Images to Your Project
3. Select the Resources tab.
4. Go to the Strings tab
 click the drop-down arrow.
 Select Images
5. Go to the Add Resource tab
 click the drop-down arrow.
6. To add an existing image, select Add Existing.
To create and add an image, select New Image,
then the image type.
PictureBox Control
 The PictureBox control displays an image.
 The image can be one of the following formats.
 Bitmap
 GIF
 JPEG
 Best use
 Enhanced Metafile
 Icon
Adding A PictureBox Control
 Click the PictureBox control in the ToolBox.
 Draw the rectangular picture box on your form.
 Set the Properties.
PictureBox Control
PictureBox Properties Description
(Name) The name of a PictureBox should start with pic
Image Sets the image to display in the PictureBox
SizeMode
Normal (Default)
StretchImage
AutoSize
CenterImage
Zoom
Controls the image sizing and position
places in the top-left corner of the Picture Box
resizes the image to fit the PictureBox
resizes the PictureBox to fit the image
puts the image in the middle of the PictureBox
resizes the image to fit the PictureBox but maintains the
original ratio
PictureBox Event Description
Click Occurs when the user clicks the PictureBox
Adding Images to the PictureBox Control
 Select the PictureBox
 Click in the Image property area
 The Ellipsis displays.
 The Select Resource dialog displays
Adding Images to the PictureBox Control
Adding Images to the PictureBox Control
 Your image will be added to the list.
Using the PictureBox
 You can set the Image property during runtime
Me.PictureBox.Image = My.Resources.ImgName
 Example
Changing How the Image Displays
 Remember the SizeMode property of the PictureBox
will change how the image is displayed.
 To change how the image is displayed at runtime,
you can change the SizeMode property.
Me.PictureBox.SizeMode = PictureBoxSizeMode.SizeModeValue
 Where the SizeModeValue is one of the choices given: Normal
(Default), StretchImage , AutoSize, CenterImage, Zoom
Animation and Timers
 What if a programmer wanted to load multiple
images to simulate animation?
 This requires VB to lay one image on top of another
to create the illusion of animation.
 This may be done using a new object from the
components area of your toolbox called a timer.
 A timer generates recurring events. Code inside the
timer event will recur until the timer is stopped.
Animation and Timers
 Timers allow programmers to execute code at
specific intervals. Timers may be found in the
toolbox:
 Please note that, once brought over to the form, timers do not actually appear on the form. They can be seen below
the form, in your Component Tray.
Animation and Timers
 Timers only have a few properties.
 The property, Interval, allows the programmer to
specify how many milliseconds lapse when executing
the block of code.

More Related Content

What's hot

Wd133 unit 7 module 3 stylizing with multiple filters
Wd133 unit 7 module 3 stylizing with multiple filtersWd133 unit 7 module 3 stylizing with multiple filters
Wd133 unit 7 module 3 stylizing with multiple filterskateridrex
 
Volumize tutorial final
Volumize tutorial finalVolumize tutorial final
Volumize tutorial final
Douglas Moore
 
Editable poly furniture models
Editable poly furniture modelsEditable poly furniture models
Editable poly furniture models
MamSuwanna Thongkhome
 
Zoom animation feature in ppt
Zoom animation feature in pptZoom animation feature in ppt
Zoom animation feature in ppt
SaMiyahWright
 
Adobe photoshop
Adobe photoshopAdobe photoshop
Adobe photoshop
viswachandan
 
Adding title graphics
Adding title graphicsAdding title graphics
Adding title graphics
asmedia974
 
User guide -gif
User guide -gifUser guide -gif
User guide -gifCho Thwin
 
Geogebra for physics
Geogebra for physicsGeogebra for physics
Geogebra for physics
Lenore Horner
 
Dig imag unit 2 module 3 modifying selections
Dig imag unit 2 module 3 modifying selectionsDig imag unit 2 module 3 modifying selections
Dig imag unit 2 module 3 modifying selectionskateridrex
 
Graphics worksheet 3
Graphics worksheet 3Graphics worksheet 3
Graphics worksheet 3
ORKO95
 
PhotoshopBeyondBasics
PhotoshopBeyondBasicsPhotoshopBeyondBasics
PhotoshopBeyondBasicstutorialsruby
 
2.1 graphics window
2.1   graphics window2.1   graphics window
2.1 graphics windowallenbailey
 
Fundamentals Image and Graphics
Fundamentals Image and GraphicsFundamentals Image and Graphics
Fundamentals Image and Graphics
Shrawan Adhikari
 
Wd133 unit 2 module 3 modifying selections
Wd133 unit 2 module 3 modifying selectionsWd133 unit 2 module 3 modifying selections
Wd133 unit 2 module 3 modifying selectionskateridrex
 
How to Create Shadow in photoshop cs6 - Photoshop Tutorial
How to Create Shadow in photoshop  cs6 - Photoshop Tutorial How to Create Shadow in photoshop  cs6 - Photoshop Tutorial
How to Create Shadow in photoshop cs6 - Photoshop Tutorial
CPZ Media
 

What's hot (18)

Wd133 unit 7 module 3 stylizing with multiple filters
Wd133 unit 7 module 3 stylizing with multiple filtersWd133 unit 7 module 3 stylizing with multiple filters
Wd133 unit 7 module 3 stylizing with multiple filters
 
Adobe photoshop
Adobe photoshopAdobe photoshop
Adobe photoshop
 
Volumize tutorial final
Volumize tutorial finalVolumize tutorial final
Volumize tutorial final
 
Image j advanced
Image j   advancedImage j   advanced
Image j advanced
 
Editable poly furniture models
Editable poly furniture modelsEditable poly furniture models
Editable poly furniture models
 
Zoom animation feature in ppt
Zoom animation feature in pptZoom animation feature in ppt
Zoom animation feature in ppt
 
Adobe photoshop
Adobe photoshopAdobe photoshop
Adobe photoshop
 
Adding title graphics
Adding title graphicsAdding title graphics
Adding title graphics
 
User guide -gif
User guide -gifUser guide -gif
User guide -gif
 
Geogebra for physics
Geogebra for physicsGeogebra for physics
Geogebra for physics
 
Dig imag unit 2 module 3 modifying selections
Dig imag unit 2 module 3 modifying selectionsDig imag unit 2 module 3 modifying selections
Dig imag unit 2 module 3 modifying selections
 
Graphics worksheet 3
Graphics worksheet 3Graphics worksheet 3
Graphics worksheet 3
 
(Sept.14)
(Sept.14)(Sept.14)
(Sept.14)
 
PhotoshopBeyondBasics
PhotoshopBeyondBasicsPhotoshopBeyondBasics
PhotoshopBeyondBasics
 
2.1 graphics window
2.1   graphics window2.1   graphics window
2.1 graphics window
 
Fundamentals Image and Graphics
Fundamentals Image and GraphicsFundamentals Image and Graphics
Fundamentals Image and Graphics
 
Wd133 unit 2 module 3 modifying selections
Wd133 unit 2 module 3 modifying selectionsWd133 unit 2 module 3 modifying selections
Wd133 unit 2 module 3 modifying selections
 
How to Create Shadow in photoshop cs6 - Photoshop Tutorial
How to Create Shadow in photoshop  cs6 - Photoshop Tutorial How to Create Shadow in photoshop  cs6 - Photoshop Tutorial
How to Create Shadow in photoshop cs6 - Photoshop Tutorial
 

Similar to M14 overview

Image contro, and format functions in vb
Image contro, and format functions in vbImage contro, and format functions in vb
Image contro, and format functions in vbAmandeep Kaur
 
Libre Office Impress Lesson 3: Adding and Formatting pictures
Libre Office Impress Lesson 3: Adding and Formatting picturesLibre Office Impress Lesson 3: Adding and Formatting pictures
Libre Office Impress Lesson 3: Adding and Formatting pictures
Smart Chicago Collaborative
 
Picture box control
Picture box controlPicture box control
Picture box control
chauhankapil
 
Adobe photoshop cs6 tutorial
Adobe photoshop cs6 tutorialAdobe photoshop cs6 tutorial
Adobe photoshop cs6 tutorial
Agung Yuwono
 
Adobe photoshop cs6
Adobe photoshop cs6Adobe photoshop cs6
Adobe photoshop cs6
ilaazmil2
 
Adobe photoshop cs6
Adobe photoshop cs6Adobe photoshop cs6
Adobe photoshop cs6Ila Azmil
 
Photoshop pdf
Photoshop pdfPhotoshop pdf
Photoshop pdfKim B
 
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdfETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
bongsantiago96
 
Adobe Photoshop CS6 tutorial 2013
Adobe Photoshop CS6 tutorial 2013Adobe Photoshop CS6 tutorial 2013
Adobe Photoshop CS6 tutorial 2013
Jessie Doan
 
Ecognition object base image classifications bangladesh
Ecognition object base image classifications bangladeshEcognition object base image classifications bangladesh
Ecognition object base image classifications bangladeshCresencio Turpo
 
Basic tutorials
Basic tutorialsBasic tutorials
Basic tutorials
Jeffrey libarios
 
Basic tutorials
Basic tutorialsBasic tutorials
Basic tutorials
Jeffrey libarios
 
Photoshop basics
Photoshop basicsPhotoshop basics
Photoshop basics
cristy nazareno
 
1 DIGITAL DOCUMENTATION.pdf
1 DIGITAL DOCUMENTATION.pdf1 DIGITAL DOCUMENTATION.pdf
1 DIGITAL DOCUMENTATION.pdf
JNVKGLCS
 
Topic 1_PPT.pptx
Topic 1_PPT.pptxTopic 1_PPT.pptx
Topic 1_PPT.pptx
BharatiPatelPhDStude
 
Photoshop_CS_Tutorial
Photoshop_CS_TutorialPhotoshop_CS_Tutorial
Photoshop_CS_Tutorialtutorialsruby
 
Photoshop_CS_Tutorial
Photoshop_CS_TutorialPhotoshop_CS_Tutorial
Photoshop_CS_Tutorialtutorialsruby
 

Similar to M14 overview (20)

Image contro, and format functions in vb
Image contro, and format functions in vbImage contro, and format functions in vb
Image contro, and format functions in vb
 
Libre Office Impress Lesson 3: Adding and Formatting pictures
Libre Office Impress Lesson 3: Adding and Formatting picturesLibre Office Impress Lesson 3: Adding and Formatting pictures
Libre Office Impress Lesson 3: Adding and Formatting pictures
 
Picture box control
Picture box controlPicture box control
Picture box control
 
Adobe photoshop cs6 tutorial
Adobe photoshop cs6 tutorialAdobe photoshop cs6 tutorial
Adobe photoshop cs6 tutorial
 
Adobe photoshop cs6
Adobe photoshop cs6Adobe photoshop cs6
Adobe photoshop cs6
 
Adobe photoshop cs6
Adobe photoshop cs6Adobe photoshop cs6
Adobe photoshop cs6
 
Photoshop pdf
Photoshop pdfPhotoshop pdf
Photoshop pdf
 
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdfETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
ETECH_WEEK7-Image-Manipulation-Techniques-1.pdf
 
Adobe Photoshop CS6 tutorial 2013
Adobe Photoshop CS6 tutorial 2013Adobe Photoshop CS6 tutorial 2013
Adobe Photoshop CS6 tutorial 2013
 
Ecognition object base image classifications bangladesh
Ecognition object base image classifications bangladeshEcognition object base image classifications bangladesh
Ecognition object base image classifications bangladesh
 
Basic tutorials
Basic tutorialsBasic tutorials
Basic tutorials
 
Basic tutorials
Basic tutorialsBasic tutorials
Basic tutorials
 
Photoshop
PhotoshopPhotoshop
Photoshop
 
Photoshop basics
Photoshop basicsPhotoshop basics
Photoshop basics
 
1 DIGITAL DOCUMENTATION.pdf
1 DIGITAL DOCUMENTATION.pdf1 DIGITAL DOCUMENTATION.pdf
1 DIGITAL DOCUMENTATION.pdf
 
Topic 1_PPT.pptx
Topic 1_PPT.pptxTopic 1_PPT.pptx
Topic 1_PPT.pptx
 
Photoshop_CS_Tutorial
Photoshop_CS_TutorialPhotoshop_CS_Tutorial
Photoshop_CS_Tutorial
 
Photoshop
PhotoshopPhotoshop
Photoshop
 
Photoshop_CS_Tutorial
Photoshop_CS_TutorialPhotoshop_CS_Tutorial
Photoshop_CS_Tutorial
 
Photoshop cs tutorial
Photoshop cs tutorialPhotoshop cs tutorial
Photoshop cs tutorial
 

More from obrienduke

VB Multiple Forms
VB Multiple FormsVB Multiple Forms
VB Multiple Forms
obrienduke
 
VB Lines and Shapes
VB Lines and ShapesVB Lines and Shapes
VB Lines and Shapes
obrienduke
 
Graphics
GraphicsGraphics
Graphics
obrienduke
 
Mod 12
Mod 12Mod 12
Mod 12
obrienduke
 
Module 7
Module 7Module 7
Module 7
obrienduke
 
Unit 4 bugs and debugging
Unit 4 bugs and debuggingUnit 4 bugs and debugging
Unit 4 bugs and debugging
obrienduke
 
Module 3 GUI Design
Module 3 GUI DesignModule 3 GUI Design
Module 3 GUI Design
obrienduke
 
Arrays in java
Arrays in javaArrays in java
Arrays in java
obrienduke
 
Nested loops
Nested loopsNested loops
Nested loops
obrienduke
 

More from obrienduke (9)

VB Multiple Forms
VB Multiple FormsVB Multiple Forms
VB Multiple Forms
 
VB Lines and Shapes
VB Lines and ShapesVB Lines and Shapes
VB Lines and Shapes
 
Graphics
GraphicsGraphics
Graphics
 
Mod 12
Mod 12Mod 12
Mod 12
 
Module 7
Module 7Module 7
Module 7
 
Unit 4 bugs and debugging
Unit 4 bugs and debuggingUnit 4 bugs and debugging
Unit 4 bugs and debugging
 
Module 3 GUI Design
Module 3 GUI DesignModule 3 GUI Design
Module 3 GUI Design
 
Arrays in java
Arrays in javaArrays in java
Arrays in java
 
Nested loops
Nested loopsNested loops
Nested loops
 

Recently uploaded

South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
ArianaBusciglio
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
Krisztián Száraz
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Ashish Kohli
 

Recently uploaded (20)

South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Assignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docxAssignment_4_ArianaBusciglio Marvel(1).docx
Assignment_4_ArianaBusciglio Marvel(1).docx
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Advantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO PerspectiveAdvantages and Disadvantages of CMS from an SEO Perspective
Advantages and Disadvantages of CMS from an SEO Perspective
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
Aficamten in HCM (SEQUOIA HCM TRIAL 2024)
 

M14 overview

  • 1. H O N O R S C O M P U T E R P R O G R A M M I N G I Module 14
  • 2. Objective/Essential Standard  Essential Standard  8.00 Apply procedures to develop graphics applications  Indicator  8.01 Understand coordinate systems. (3%)  8.02 Apply Procedures to Create Picture Boxes Using Images. (5%)
  • 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 origin is 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. (0, 0) x = 50 Y = 50 (50, 50)
  • 6. Coordinate Systems  You can also indicate the width of the object by using its Width property.  Likewise you can indicate the height of the object using its Height property. 0, 0 lblDraw.Width lblDraw.Height
  • 7. Coordinate Systems  To indicate the form’s height maxHeight = Me.Height  To indicate the form’s width maxWidth = Me.Width  You can use the Height and Width properties to set relative positions. Form’s Width and Height
  • 8. Adding Images to Your Project 1. In the Solution Explorer, double-click My Project 2. The following is displayed.
  • 9. Adding Images to Your Project 3. Select the Resources tab. 4. Go to the Strings tab  click the drop-down arrow.  Select Images 5. Go to the Add Resource tab  click the drop-down arrow. 6. To add an existing image, select Add Existing. To create and add an image, select New Image, then the image type.
  • 10. PictureBox Control  The PictureBox control displays an image.  The image can be one of the following formats.  Bitmap  GIF  JPEG  Best use  Enhanced Metafile  Icon
  • 11. Adding A PictureBox Control  Click the PictureBox control in the ToolBox.  Draw the rectangular picture box on your form.  Set the Properties.
  • 12. PictureBox Control PictureBox Properties Description (Name) The name of a PictureBox should start with pic Image Sets the image to display in the PictureBox SizeMode Normal (Default) StretchImage AutoSize CenterImage Zoom Controls the image sizing and position places in the top-left corner of the Picture Box resizes the image to fit the PictureBox resizes the PictureBox to fit the image puts the image in the middle of the PictureBox resizes the image to fit the PictureBox but maintains the original ratio PictureBox Event Description Click Occurs when the user clicks the PictureBox
  • 13. Adding Images to the PictureBox Control  Select the PictureBox  Click in the Image property area  The Ellipsis displays.  The Select Resource dialog displays
  • 14. Adding Images to the PictureBox Control
  • 15. Adding Images to the PictureBox Control  Your image will be added to the list.
  • 16. Using the PictureBox  You can set the Image property during runtime Me.PictureBox.Image = My.Resources.ImgName  Example
  • 17. Changing How the Image Displays  Remember the SizeMode property of the PictureBox will change how the image is displayed.  To change how the image is displayed at runtime, you can change the SizeMode property. Me.PictureBox.SizeMode = PictureBoxSizeMode.SizeModeValue  Where the SizeModeValue is one of the choices given: Normal (Default), StretchImage , AutoSize, CenterImage, Zoom
  • 18. Animation and Timers  What if a programmer wanted to load multiple images to simulate animation?  This requires VB to lay one image on top of another to create the illusion of animation.  This may be done using a new object from the components area of your toolbox called a timer.  A timer generates recurring events. Code inside the timer event will recur until the timer is stopped.
  • 19. Animation and Timers  Timers allow programmers to execute code at specific intervals. Timers may be found in the toolbox:  Please note that, once brought over to the form, timers do not actually appear on the form. They can be seen below the form, in your Component Tray.
  • 20. Animation and Timers  Timers only have a few properties.  The property, Interval, allows the programmer to specify how many milliseconds lapse when executing the block of code.