コード例 #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)));
 }
コード例 #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));
 }
コード例 #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)));
 }
コード例 #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));
 }
コード例 #5
0
 public void SetImage(Bitmap image)
 {
     NativeScintilla.MarkerDefinePixmap(_number, XpmConverter.ConvertToXPM(image));
 }
コード例 #6
0
 public void SetImage(Bitmap image, Color transparentColor)
 {
     NativeScintilla.MarkerDefinePixmap(_number, XpmConverter.ConvertToXPM(image, Utilities.ColorToHtml(transparentColor)));
 }