Ejemplo n.º 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);
Ejemplo n.º 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);
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 6
0
 extern static IntPtr gimp_color_button_new(string title,
                                            int width,
                                            int height,
                                            ref GimpRGB color,
                                            ColorAreaType type);
Ejemplo n.º 7
0
 static extern double gimp_rgb_add(ref GimpRGB rgb1,
                                   ref GimpRGB rgb2);
Ejemplo n.º 8
0
 static extern void gimp_rgb_set_uchar(ref GimpRGB rgb,
     byte red,
     byte green,
     byte blue);
Ejemplo n.º 9
0
 static extern void gimp_color_button_set_color(IntPtr button,
     ref GimpRGB color);
Ejemplo n.º 10
0
 static extern byte gimp_rgb_luminance_uchar(ref GimpRGB rgb);
Ejemplo n.º 11
0
 static extern bool gimp_rgb_parse_hex(ref GimpRGB rgb,
     string hex,
     int len);
Ejemplo n.º 12
0
 static extern void gimp_rgb_gamma(ref GimpRGB rgb,
                                   double gamma);
Ejemplo n.º 13
0
 static extern double gimp_rgb_distance(ref GimpRGB rgb1,
     ref GimpRGB rgb2);
Ejemplo n.º 14
0
 static extern double gimp_rgb_min(ref GimpRGB rgb);
Ejemplo n.º 15
0
 static extern void gimp_rgb_clamp(ref GimpRGB rgb);
Ejemplo n.º 16
0
 static extern double gimp_rgb_distance(ref GimpRGB rgb1,
                                        ref GimpRGB rgb2);
Ejemplo n.º 17
0
 static extern void gimp_rgb_multiply(ref GimpRGB rgb,
                                      double factor);
Ejemplo n.º 18
0
 static extern double gimp_rgb_subtract(ref GimpRGB rgb1,
                                        ref GimpRGB rgb2);
Ejemplo n.º 19
0
 static extern void gimp_cmyk_to_rgb(ref GimpCMYK cmyk,
     ref GimpRGB rgb);
Ejemplo n.º 20
0
 static extern double gimp_rgb_luminance(ref GimpRGB rgb);
Ejemplo n.º 21
0
 static extern double gimp_rgb_add(ref GimpRGB rgb1,
     ref GimpRGB rgb2);
Ejemplo n.º 22
0
 static extern byte gimp_rgb_luminance_uchar(ref GimpRGB rgb);
Ejemplo n.º 23
0
 static extern void gimp_rgb_get_uchar(ref GimpRGB rgb,
     out byte red,
     out byte green,
     out byte blue);
Ejemplo n.º 24
0
 internal RGB(GimpRGB rgb)
 {
     _rgb = rgb;
 }
Ejemplo n.º 25
0
 static extern void gimp_rgb_multiply(ref GimpRGB rgb,
     double factor);
Ejemplo n.º 26
0
 static extern Int32 gimp_channel_new(Int32 image_ID, string name,
                                      int width, int height,
                                      double opacity,
                                      ref GimpRGB color);
Ejemplo n.º 27
0
 static extern void gimp_rgb_set(ref GimpRGB rgb,
     double red,
     double green,
     double blue);
Ejemplo n.º 28
0
 static extern bool gimp_channel_set_color(Int32 channel_ID,
                                           ref GimpRGB color);
Ejemplo n.º 29
0
 internal RGB(GimpRGB rgb)
 {
     _rgb = rgb;
 }
Ejemplo n.º 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))
 {
 }
Ejemplo n.º 31
0
 static extern bool gimp_rgb_parse_hex(ref GimpRGB rgb,
                                       string hex,
                                       int len);
Ejemplo n.º 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);
Ejemplo n.º 33
0
 extern static void gimp_color_button_get_color(IntPtr button,
                                                ref GimpRGB color);
Ejemplo n.º 34
0
 static extern bool gimp_rgb_parse_css(ref GimpRGB rgb,
                                       string css,
                                       int len);
Ejemplo n.º 35
0
 static extern void gimp_pixel_fetcher_set_bg_color(IntPtr pf,
                                                    ref GimpRGB color);
Ejemplo n.º 36
0
 static extern bool gimp_palette_add_entry(string name,
                                           string entry_name,
                                           ref GimpRGB color,
                                           out int entry_num);
Ejemplo n.º 37
0
 static extern bool gimp_palette_entry_set_color(string name,
                                                 int entry_num,
                                                 GimpRGB color);
Ejemplo n.º 38
0
 static extern bool gimp_gradient_segment_get_left_color(string name,
     int segment,
     out GimpRGB color,
     out double opacity);
Ejemplo n.º 39
0
 static extern void gimp_hsv_to_rgb(ref GimpHSV hsv,
     ref GimpRGB rgb);
Ejemplo n.º 40
0
 static extern bool gimp_gradient_segment_set_right_color(string name,
     int segment,
     ref GimpRGB color,
     double opacity);
Ejemplo n.º 41
0
 static extern void gimp_rgb_clamp(ref GimpRGB rgb);
Ejemplo n.º 42
0
 static extern bool gimp_context_get_foreground(out GimpRGB foreground);
Ejemplo n.º 43
0
 static extern void gimp_rgb_gamma(ref GimpRGB rgb,
     double gamma);
Ejemplo n.º 44
0
 static extern bool gimp_context_set_foreground(ref GimpRGB foreground);
Ejemplo n.º 45
0
 static extern double gimp_rgb_luminance(ref GimpRGB rgb);
Ejemplo n.º 46
0
 static extern bool gimp_context_get_background(out GimpRGB background);
Ejemplo n.º 47
0
 static extern double gimp_rgb_min(ref GimpRGB rgb);
Ejemplo n.º 48
0
 static extern bool gimp_context_set_background(ref GimpRGB background);
Ejemplo n.º 49
0
 static extern bool gimp_rgb_parse_css(ref GimpRGB rgb,
     string css,
     int len);
Ejemplo n.º 50
0
 static extern bool gimp_context_get_background(out GimpRGB background);
Ejemplo n.º 51
0
 static extern bool gimp_rgb_parse_name(ref GimpRGB rgb,
     IntPtr name,
     int len);
Ejemplo n.º 52
0
 static extern bool gimp_context_get_foreground(out GimpRGB foreground);
Ejemplo n.º 53
0
 static extern void gimp_rgb_set_alpha(ref GimpRGB rgb,
     double alpha);
Ejemplo n.º 54
0
 static extern bool gimp_context_set_background(ref GimpRGB background);
Ejemplo n.º 55
0
 static extern double gimp_rgb_subtract(ref GimpRGB rgb1,
     ref GimpRGB rgb2);
Ejemplo n.º 56
0
 static extern bool gimp_context_set_foreground(ref GimpRGB foreground);
Ejemplo n.º 57
0
 static extern IntPtr gimp_color_button_new(string title,
     int width,
     int height,
     ref GimpRGB color,
     ColorAreaType type);
Ejemplo n.º 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))
 {
 }
Ejemplo n.º 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))
 {
 }
Ejemplo n.º 60
0
 static extern bool gimp_rgb_parse_name(ref GimpRGB rgb,
                                        IntPtr name,
                                        int len);