Creating an Image of dbicMonth
The dbicMonth control is able to produce an image of itself on a local or mapped drive. This can be very useful when you need to post a visual representation of the control on a web site.
An image is created using the CreateImage method. This method accepts three parameters. The first is the name of the file to be created. The second and third parameters then determine the size of image. The image size can be set up in three different ways …
Fixed Size
If the second and third parameters are sent a value greater than 5, the height and width of the image will be that of the values sent to those parameters. The first line item in the image will be the current top visible time in the control.
Actual Size
If the second and third parameters are sent a value of 0, the height and width of the image will be set to the current size of the actual control. The first line item in the image will be the current top visible time in the control.
Full Size
If a value or -1 is sent to the second and/or third parameter, the control will calculate the actual height and/or width of the control. The first line in the image will be based on the starting time in the control.
Image Type
The type image created is determined by the ImageType property.