dbicDayView Send comments on this topic.
Developing with dbicDayView - Creating Images

Glossary Item Box

Creating an Image of the Control

The dbicDayView control is capable of producing an image of itself on a local or mapped drive. This can be very useful for expressing a static visual representation of the control.  An example of using an image is to display a snap shot of a day view calendar on a web site or attaching it to an email.

 

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 determine the size of the 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 of -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.

 

NOTE: A full size image may be too large to actually produce. Set the MaxImageHeight and MaxImageWidth properties ensure that the image does not get too large. These properties will only take effect if their value is greater than 0 and a value of -1 was sent to the CreateImage parameters.

 

Image Type

 

The type of image created is determined by the ImageType property. The ImageType can be set to JPG, GIF, or BMP (bitmap).

 

NOTE: The maximum number of columns in an image is limited to 14.