Beispiel #1
0
 /// <summary>
 ///     Registers a list of images to be displayed in the AutoComplete window.
 /// </summary>
 /// <param name="images">List of images contained in an ImageList</param>
 /// <param name="transparentColor">Color to mask the image as transparent</param>
 /// <remarks>Indecis are assigned sequentially starting at 0</remarks>
 public void RegisterImages(ImageList images, Color transparentColor)
 {
     RegisterImages(XpmConverter.ConvertToXPM(images, Utilities.ColorToHtml(transparentColor)));
 }
Beispiel #2
0
 /// <summary>
 ///     Registers a list of images to be displayed in the AutoComplete window.
 /// </summary>
 /// <param name="images">List of images contained in an ImageList</param>
 /// <remarks>Indecis are assigned sequentially starting at 0</remarks>
 public void RegisterImages(ImageList images)
 {
     RegisterImages(XpmConverter.ConvertToXPM(images));
 }
Beispiel #3
0
 /// <summary>
 ///     Registers an image with index to be displayed in the AutoComplete window.
 /// </summary>
 /// <param name="type">Index of the image to register to</param>
 /// <param name="xpmImage">Image to display in the XPM image format</param>
 /// <param name="transparentColor">Color to mask the image as transparent</param>
 private void RegisterImage(int type, Bitmap image, Color transparentColor)
 {
     NativeScintilla.RegisterImage(type, XpmConverter.ConvertToXPM(image, Utilities.ColorToHtml(transparentColor)));
 }
Beispiel #4
0
 /// <summary>
 ///     Registers an image with index to be displayed in the AutoComplete window.
 /// </summary>
 /// <param name="type">Index of the image to register to</param>
 /// <param name="image">Image to display in Bitmap format</param>
 private void RegisterImage(int type, Bitmap image)
 {
     NativeScintilla.RegisterImage(type, XpmConverter.ConvertToXPM(image));
 }
Beispiel #5
0
 public void SetImage(Bitmap image)
 {
     NativeScintilla.MarkerDefinePixmap(_number, XpmConverter.ConvertToXPM(image));
 }
Beispiel #6
0
 public void SetImage(Bitmap image, Color transparentColor)
 {
     NativeScintilla.MarkerDefinePixmap(_number, XpmConverter.ConvertToXPM(image, Utilities.ColorToHtml(transparentColor)));
 }