Viscom Software Image Thumbnail CP ActiveX Control

SetClipBackgroundColor Method

Description:   

Set the background color of thumbnail at specifies index.

Usage:   

ImageThumbnailCP1.SetClipBackgroundColor Parameter1, Parameter2

Return Value:

Return true - successful , Return false - Failure.

Parameter:

Parameter1 - the index of thumbnail. (Data Type: Index)

Parameter2 - the color of background color.  (Data Type: Color)

Example:   

This Visual Basic example Add the Image Clip:

Private Sub cmdAdd_Click()     

ImageThumbnailCP1.AddClip "c:\test1.jpg", "Demo 1"

ImageThumbnailCP1.SetClipBackgroundColor ImageThumbnailCP1.ClipCount - 1, RGB(255, 0, 0)

End Sub