コード例 #1
0
ファイル: Image.cs プロジェクト: unhammer/gimp-sharp
 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);
コード例 #2
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);
コード例 #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
ファイル: Palette.cs プロジェクト: unhammer/gimp-sharp
        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
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern double gimp_rgb_add(ref GimpRGB rgb1,
                                   ref GimpRGB rgb2);
コード例 #8
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 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
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern byte gimp_rgb_luminance_uchar(ref GimpRGB rgb);
コード例 #11
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_rgb_parse_hex(ref GimpRGB rgb,
     string hex,
     int len);
コード例 #12
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern void gimp_rgb_gamma(ref GimpRGB rgb,
                                   double gamma);
コード例 #13
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern double gimp_rgb_distance(ref GimpRGB rgb1,
     ref GimpRGB rgb2);
コード例 #14
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern double gimp_rgb_min(ref GimpRGB rgb);
コード例 #15
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern void gimp_rgb_clamp(ref GimpRGB rgb);
コード例 #16
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern double gimp_rgb_distance(ref GimpRGB rgb1,
                                        ref GimpRGB rgb2);
コード例 #17
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern void gimp_rgb_multiply(ref GimpRGB rgb,
                                      double factor);
コード例 #18
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern double gimp_rgb_subtract(ref GimpRGB rgb1,
                                        ref GimpRGB rgb2);
コード例 #19
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern void gimp_cmyk_to_rgb(ref GimpCMYK cmyk,
     ref GimpRGB rgb);
コード例 #20
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern double gimp_rgb_luminance(ref GimpRGB rgb);
コード例 #21
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern double gimp_rgb_add(ref GimpRGB rgb1,
     ref GimpRGB rgb2);
コード例 #22
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern byte gimp_rgb_luminance_uchar(ref GimpRGB rgb);
コード例 #23
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 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
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern void gimp_rgb_multiply(ref GimpRGB rgb,
     double factor);
コード例 #26
0
ファイル: Channel.cs プロジェクト: unhammer/gimp-sharp
 static extern Int32 gimp_channel_new(Int32 image_ID, string name,
                                      int width, int height,
                                      double opacity,
                                      ref GimpRGB color);
コード例 #27
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern void gimp_rgb_set(ref GimpRGB rgb,
     double red,
     double green,
     double blue);
コード例 #28
0
ファイル: Channel.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_channel_set_color(Int32 channel_ID,
                                           ref GimpRGB color);
コード例 #29
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 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
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 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
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 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
ファイル: Palette.cs プロジェクト: unhammer/gimp-sharp
 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
ファイル: Gradient.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_gradient_segment_get_left_color(string name,
     int segment,
     out GimpRGB color,
     out double opacity);
コード例 #39
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern void gimp_hsv_to_rgb(ref GimpHSV hsv,
     ref GimpRGB rgb);
コード例 #40
0
ファイル: Gradient.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_gradient_segment_set_right_color(string name,
     int segment,
     ref GimpRGB color,
     double opacity);
コード例 #41
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern void gimp_rgb_clamp(ref GimpRGB rgb);
コード例 #42
0
 static extern bool gimp_context_get_foreground(out GimpRGB foreground);
コード例 #43
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 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
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern double gimp_rgb_luminance(ref GimpRGB rgb);
コード例 #46
0
 static extern bool gimp_context_get_background(out GimpRGB background);
コード例 #47
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern double gimp_rgb_min(ref GimpRGB rgb);
コード例 #48
0
 static extern bool gimp_context_set_background(ref GimpRGB background);
コード例 #49
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_rgb_parse_css(ref GimpRGB rgb,
     string css,
     int len);
コード例 #50
0
ファイル: Context.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_context_get_background(out GimpRGB background);
コード例 #51
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_rgb_parse_name(ref GimpRGB rgb,
     IntPtr name,
     int len);
コード例 #52
0
ファイル: Context.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_context_get_foreground(out GimpRGB foreground);
コード例 #53
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern void gimp_rgb_set_alpha(ref GimpRGB rgb,
     double alpha);
コード例 #54
0
ファイル: Context.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_context_set_background(ref GimpRGB background);
コード例 #55
0
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern double gimp_rgb_subtract(ref GimpRGB rgb1,
     ref GimpRGB rgb2);
コード例 #56
0
ファイル: Context.cs プロジェクト: unhammer/gimp-sharp
 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
ファイル: RGB.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_rgb_parse_name(ref GimpRGB rgb,
                                        IntPtr name,
                                        int len);