PictureBox

 

 

This page demonstrate how to use a PictureBox that is provided by Views.

Picture Box is responsible for displaying a picture that is read from a file.  The image file format may be any format that is supported by Windows (e.g. JPEG, GIF, BMP AND WMF). The PictureBox attributes or properties are:

Name, Image, Height, Width, ForeColor, BackColor, halign and valign. The full description of these properties can be found here.

 

Example of a PictureBox

Note that you need to download the provided Picture for this example to work on your machine.

Example 2.5.1: Source

                             Save Picture

@"<Form Text= 'Photo Album'>
<Vertical>
 <Label Text = 'PictureBox Example: Photo Album'/>
   <PictureBox Name = display Height = 4.0in Width = 3.0in image = 'pic.jpe'/>
     
<Horizontal>
       <Button Name = Previous halign = Center/>
        <Button Name = Next halign = Right/>
     </Horizontal>
</Vertical>
</Form>";

 

This Image will be displayed from the code above.

                                                                                          

 

 

<<PREVIOUS   NEXT >>