Пример #1
0
 static extern bool  gimp_image_pick_color(Int32 image_ID,
                                           Int32 drawable_ID,
                                           double x, double y,
                                           bool sample_merged,
                                           bool sample_average,
                                           double average_radius,
                                           out GimpRGB color);
        static extern bool gimp_by_color_select(Int32 drawable_ID,
					    ref GimpRGB color,
					    int threshold,
					    ChannelOps operation,
					    bool antialias,
					    bool feather,
					    double feather_radius,
					    bool sample_merged);
Пример #3
0
 static extern bool gimp_by_color_select(Int32 drawable_ID,
                                         ref GimpRGB color,
                                         int threshold,
                                         ChannelOps operation,
                                         bool antialias,
                                         bool feather,
                                         double feather_radius,
                                         bool sample_merged);
Пример #4
0
        public RGB SegmentGetLeftColor(int segment, out double opacity)
        {
            var rgb = new GimpRGB();

            if (!gimp_gradient_segment_get_left_color(Name, segment, out rgb,
                                                      out opacity))
            {
                throw new GimpSharpException();
            }
            return(new RGB(rgb));
        }
Пример #5
0
        public PaletteEntry AddEntry(string entryName, RGB color)
        {
            GimpRGB rgb = color.GimpRGB;
            int     entryNum;

            if (!gimp_palette_add_entry(Name, entryName, ref rgb,
                                        out entryNum))
            {
                throw new GimpSharpException();
            }
            return(new PaletteEntry(this, entryNum));
        }
Пример #6
0
 extern static IntPtr gimp_color_button_new(string title,
                                            int width,
                                            int height,
                                            ref GimpRGB color,
                                            ColorAreaType type);
Пример #7
0
 static extern double gimp_rgb_add(ref GimpRGB rgb1,
                                   ref GimpRGB rgb2);
Пример #8
0
 static extern void gimp_rgb_set_uchar(ref GimpRGB rgb,
     byte red,
     byte green,
     byte blue);
Пример #9
0
 static extern void gimp_color_button_set_color(IntPtr button,
     ref GimpRGB color);
Пример #10
0
 static extern byte gimp_rgb_luminance_uchar(ref GimpRGB rgb);
Пример #11
0
 static extern bool gimp_rgb_parse_hex(ref GimpRGB rgb,
     string hex,
     int len);
Пример #12
0
 static extern void gimp_rgb_gamma(ref GimpRGB rgb,
                                   double gamma);
Пример #13
0
 static extern double gimp_rgb_distance(ref GimpRGB rgb1,
     ref GimpRGB rgb2);
Пример #14
0
 static extern double gimp_rgb_min(ref GimpRGB rgb);
Пример #15
0
 static extern void gimp_rgb_clamp(ref GimpRGB rgb);
Пример #16
0
 static extern double gimp_rgb_distance(ref GimpRGB rgb1,
                                        ref GimpRGB rgb2);
Пример #17
0
 static extern void gimp_rgb_multiply(ref GimpRGB rgb,
                                      double factor);
Пример #18
0
 static extern double gimp_rgb_subtract(ref GimpRGB rgb1,
                                        ref GimpRGB rgb2);
Пример #19
0
 static extern void gimp_cmyk_to_rgb(ref GimpCMYK cmyk,
     ref GimpRGB rgb);
Пример #20
0
 static extern double gimp_rgb_luminance(ref GimpRGB rgb);
Пример #21
0
 static extern double gimp_rgb_add(ref GimpRGB rgb1,
     ref GimpRGB rgb2);
Пример #22
0
 static extern byte gimp_rgb_luminance_uchar(ref GimpRGB rgb);
Пример #23
0
 static extern void gimp_rgb_get_uchar(ref GimpRGB rgb,
     out byte red,
     out byte green,
     out byte blue);
Пример #24
0
 internal RGB(GimpRGB rgb)
 {
     _rgb = rgb;
 }
Пример #25
0
 static extern void gimp_rgb_multiply(ref GimpRGB rgb,
     double factor);
Пример #26
0
 static extern Int32 gimp_channel_new(Int32 image_ID, string name,
                                      int width, int height,
                                      double opacity,
                                      ref GimpRGB color);
Пример #27
0
 static extern void gimp_rgb_set(ref GimpRGB rgb,
     double red,
     double green,
     double blue);
Пример #28
0
 static extern bool gimp_channel_set_color(Int32 channel_ID,
                                           ref GimpRGB color);
Пример #29
0
 internal RGB(GimpRGB rgb)
 {
     _rgb = rgb;
 }
Пример #30
0
 internal GimpColorButton(string title, int width, int height,
                          GimpRGB color, ColorAreaType type) :
     base(gimp_color_button_new(title, width, height, ref color, type))
 {
 }
Пример #31
0
 static extern bool gimp_rgb_parse_hex(ref GimpRGB rgb,
                                       string hex,
                                       int len);
Пример #32
0
        static extern bool gimp_image_pick_color(Int32 image_ID,
					      Int32 drawable_ID,
					      double x, double y,
					      bool sample_merged, 
					      bool sample_average,
					      double average_radius,
					      out GimpRGB color);
Пример #33
0
 extern static void gimp_color_button_get_color(IntPtr button,
                                                ref GimpRGB color);
Пример #34
0
 static extern bool gimp_rgb_parse_css(ref GimpRGB rgb,
                                       string css,
                                       int len);
Пример #35
0
 static extern void gimp_pixel_fetcher_set_bg_color(IntPtr pf,
                                                    ref GimpRGB color);
Пример #36
0
 static extern bool gimp_palette_add_entry(string name,
                                           string entry_name,
                                           ref GimpRGB color,
                                           out int entry_num);
Пример #37
0
 static extern bool gimp_palette_entry_set_color(string name,
                                                 int entry_num,
                                                 GimpRGB color);
Пример #38
0
 static extern bool gimp_gradient_segment_get_left_color(string name,
     int segment,
     out GimpRGB color,
     out double opacity);
Пример #39
0
 static extern void gimp_hsv_to_rgb(ref GimpHSV hsv,
     ref GimpRGB rgb);
Пример #40
0
 static extern bool gimp_gradient_segment_set_right_color(string name,
     int segment,
     ref GimpRGB color,
     double opacity);
Пример #41
0
 static extern void gimp_rgb_clamp(ref GimpRGB rgb);
Пример #42
0
 static extern bool gimp_context_get_foreground(out GimpRGB foreground);
Пример #43
0
 static extern void gimp_rgb_gamma(ref GimpRGB rgb,
     double gamma);
Пример #44
0
 static extern bool gimp_context_set_foreground(ref GimpRGB foreground);
Пример #45
0
 static extern double gimp_rgb_luminance(ref GimpRGB rgb);
Пример #46
0
 static extern bool gimp_context_get_background(out GimpRGB background);
Пример #47
0
 static extern double gimp_rgb_min(ref GimpRGB rgb);
Пример #48
0
 static extern bool gimp_context_set_background(ref GimpRGB background);
Пример #49
0
 static extern bool gimp_rgb_parse_css(ref GimpRGB rgb,
     string css,
     int len);
Пример #50
0
 static extern bool gimp_context_get_background(out GimpRGB background);
Пример #51
0
 static extern bool gimp_rgb_parse_name(ref GimpRGB rgb,
     IntPtr name,
     int len);
Пример #52
0
 static extern bool gimp_context_get_foreground(out GimpRGB foreground);
Пример #53
0
 static extern void gimp_rgb_set_alpha(ref GimpRGB rgb,
     double alpha);
Пример #54
0
 static extern bool gimp_context_set_background(ref GimpRGB background);
Пример #55
0
 static extern double gimp_rgb_subtract(ref GimpRGB rgb1,
     ref GimpRGB rgb2);
Пример #56
0
 static extern bool gimp_context_set_foreground(ref GimpRGB foreground);
Пример #57
0
 static extern IntPtr gimp_color_button_new(string title,
     int width,
     int height,
     ref GimpRGB color,
     ColorAreaType type);
Пример #58
0
 // Private (!) constructor so we can pass rgb by reference
 Channel(Image image, string name, int width, int height,
         double opacity, GimpRGB rgb) :
     base(gimp_channel_new(image.ID, name, width, height, opacity, ref rgb))
 {
 }
Пример #59
0
 internal GimpColorButton(string title, int width, int height,
     GimpRGB color, ColorAreaType type)
     : base(gimp_color_button_new(title, width, height, ref color, type))
 {
 }
Пример #60
0
 static extern bool gimp_rgb_parse_name(ref GimpRGB rgb,
                                        IntPtr name,
                                        int len);