コード例 #1
0
 public void Combine(Channel channel, ChannelOps operation)
 {
     if (!gimp_selection_combine(channel.ID, operation))
     {
         throw new GimpSharpException();
     }
 }
コード例 #2
0
ファイル: FreeSelectTool.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_free_select(Int32 image_ID,
     int num_segs,
     double[] segs,
     ChannelOps operation,
     bool antialias,
     bool feather,
     double feather_radius);
コード例 #3
0
 extern static bool gimp_free_select(Int32 image_ID,
                                     int num_segs,
                                     double[] segs,
                                     ChannelOps operation,
                                     bool antialias,
                                     bool feather,
                                     double feather_radius);
コード例 #4
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);
コード例 #5
0
        static extern bool gimp_rect_select(Int32 image_ID,
					double x,
					double y,
					double width,
					double height,
					ChannelOps operation,
					bool feather,
					double feather_radius);
コード例 #6
0
 static extern bool gimp_rect_select(Int32 image_ID,
                                     double x,
                                     double y,
                                     double width,
                                     double height,
                                     ChannelOps operation,
                                     bool feather,
                                     double feather_radius);
コード例 #7
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);
コード例 #8
0
 extern static bool gimp_fuzzy_select(Int32 drawable_ID,
                                      double x,
                                      double y,
                                      int threshold,
                                      ChannelOps operation,
                                      bool antialias,
                                      bool feather,
                                      double feather_radius,
                                      bool sample_merged);
コード例 #9
0
ファイル: Vectors.cs プロジェクト: unhammer/gimp-sharp
 // Fix me: deprecated
 public void ToSelection(ChannelOps operation, bool antialias, bool feather,
                         double featherRadiusX, double featherRadiusY)
 {
     if (!gimp_vectors_to_selection(_ID, operation, antialias, feather,
                                    featherRadiusX, featherRadiusY))
     {
         throw new GimpSharpException();
     }
 }
コード例 #10
0
        static extern bool gimp_fuzzy_select(Int32 drawable_ID,
					 double x,
					 double y,
					 int threshold,
					 ChannelOps operation,
					 bool antialias,
					 bool feather,
					 double feather_radius,
					 bool sample_merged);
コード例 #11
0
ファイル: Channel.cs プロジェクト: unhammer/gimp-sharp
 public void CombineMasks(Channel channel, ChannelOps operation,
                          int offx, int offy)
 {
     if (!gimp_channel_combine_masks(ID, channel.ID, operation,
                                     offx, offy))
     {
         throw new GimpSharpException();
     }
 }
コード例 #12
0
 public void Select(double x, double y, double width, double height,
                    ChannelOps operation, bool feather,
                    double featherRadius)
 {
     if (!gimp_rect_select(_imageID, x, y, width, height, operation,
                           feather, featherRadius))
     {
         throw new GimpSharpException();
     }
 }
コード例 #13
0
ファイル: Path.cs プロジェクト: unhammer/gimp-sharp
 public void ToSelection(ChannelOps op, bool antialias,
                         bool feather, double feather_radius_x,
                         double feather_radius_y)
 {
     if (!gimp_path_to_selection(_imageID, _name, op, antialias,
                                 feather, feather_radius_x, feather_radius_y))
     {
         throw new GimpSharpException();
     }
 }
コード例 #14
0
ファイル: FreeSelectTool.cs プロジェクト: unhammer/gimp-sharp
 public void Select(CoordinateList<double> segs, ChannelOps operation, 
     bool antialias, bool feather, double featherRadius)
 {
     var array = segs.ToArray();
       if (!gimp_free_select(_imageID, array.Length, array, operation,
         antialias, feather, featherRadius))
     {
       throw new GimpSharpException();
     }
 }
コード例 #15
0
 public void Select(double x, double y, double width, double height,
     ChannelOps operation, bool antialias, bool feather,
     double featherRadius)
 {
     if (!gimp_ellipse_select(_imageID, x, y, width, height, operation,
            antialias, feather, featherRadius))
     {
       throw new GimpSharpException();
     }
 }
コード例 #16
0
 public void Select(Coordinate <double> coordinate, int threshold,
                    ChannelOps operation, bool antialias, bool feather,
                    double featherRadius, bool sampleMerged)
 {
     if (!gimp_fuzzy_select(_drawableID, coordinate.X, coordinate.Y, threshold,
                            operation, antialias, feather, featherRadius,
                            sampleMerged))
     {
         throw new GimpSharpException();
     }
 }
コード例 #17
0
        public void Select(CoordinateList <double> segs, ChannelOps operation,
                           bool antialias, bool feather, double featherRadius)
        {
            var array = segs.ToArray();

            if (!gimp_free_select(_imageID, array.Length, array, operation,
                                  antialias, feather, featherRadius))
            {
                throw new GimpSharpException();
            }
        }
コード例 #18
0
        public void Select(Coordinate<double> coordinate, int threshold, 
		       ChannelOps operation, bool antialias, bool feather, 
		       double featherRadius, bool sampleMerged)
        {
            if (!gimp_fuzzy_select(_drawableID, coordinate.X, coordinate.Y, threshold,
                 operation, antialias, feather, featherRadius,
                 sampleMerged))
            {
              throw new GimpSharpException();
            }
        }
コード例 #19
0
 extern static bool gimp_fuzzy_select_full(Int32 drawable_ID,
                                           double x,
                                           double y,
                                           int threshold,
                                           ChannelOps operation,
                                           bool antialias,
                                           bool feather,
                                           double feather_radius_x,
                                           double feather_radius_y,
                                           bool sample_merged,
                                           bool select_transparent,
                                           SelectCriterion select_criterion);
コード例 #20
0
        public void Select(RGB color, int threshold, ChannelOps operation, 
		       bool antialias, bool feather, double featherRadius,
		       bool sampleMerged)
        {
            var rgb = color.GimpRGB;
              if (!gimp_by_color_select(_drawableID, ref rgb, threshold, operation,
                antialias, feather, featherRadius,
                sampleMerged))
            {
              throw new GimpSharpException();
            }
        }
コード例 #21
0
        public void Select(RGB color, int threshold, ChannelOps operation,
                           bool antialias, bool feather, double featherRadius,
                           bool sampleMerged)
        {
            var rgb = color.GimpRGB;

            if (!gimp_by_color_select(_drawableID, ref rgb, threshold, operation,
                                      antialias, feather, featherRadius,
                                      sampleMerged))
            {
                throw new GimpSharpException();
            }
        }
コード例 #22
0
        public void Select(Coordinate<double> coordinate, int threshold, 
		       ChannelOps operation, bool antialias, bool feather, 
		       double featherRadiusX, double featherRadiusY,
		       bool sampleMerged, bool selectTransparent,
		       SelectCriterion selectCriterion)
        {
            if (!gimp_fuzzy_select_full(_drawableID, coordinate.X, coordinate.Y,
                  threshold,
                  operation, antialias, feather,
                  featherRadiusX, featherRadiusY,
                  sampleMerged, selectTransparent,
                  selectCriterion))
            {
              throw new GimpSharpException();
            }
        }
コード例 #23
0
 public void Select(Coordinate <double> coordinate, int threshold,
                    ChannelOps operation, bool antialias, bool feather,
                    double featherRadiusX, double featherRadiusY,
                    bool sampleMerged, bool selectTransparent,
                    SelectCriterion selectCriterion)
 {
     if (!gimp_fuzzy_select_full(_drawableID, coordinate.X, coordinate.Y,
                                 threshold,
                                 operation, antialias, feather,
                                 featherRadiusX, featherRadiusY,
                                 sampleMerged, selectTransparent,
                                 selectCriterion))
     {
         throw new GimpSharpException();
     }
 }
コード例 #24
0
        public void ToSelection(ChannelOps operation, bool antialias, bool feather,
			    double featherRadiusX, double featherRadiusY)
        {
            if (!gimp_vectors_to_selection(_ID, operation, antialias, feather,
                     featherRadiusX, featherRadiusY))
            {
              throw new GimpSharpException();
            }
        }
コード例 #25
0
        static extern bool gimp_fuzzy_select_full(Int32 drawable_ID,
					      double x,
					      double y,
					      int threshold,
					      ChannelOps operation,
					      bool antialias,
					      bool feather,
					      double feather_radius_x,
					      double feather_radius_y,
					      bool sample_merged,
					      bool select_transparent,
					      SelectCriterion select_criterion);
コード例 #26
0
 public void ToSelection(ChannelOps operation, bool antialias)
 {
     ToSelection(operation, antialias, false, 0, 0);
 }
コード例 #27
0
 public void Combine(Channel channel, ChannelOps operation)
 {
     if (!gimp_selection_combine(channel.ID, operation))
     {
       throw new GimpSharpException();
     }
 }
コード例 #28
0
 public void Select(CoordinateList <double> segs, ChannelOps operation)
 {
     Select(segs, operation, false, false, 0);
 }
コード例 #29
0
ファイル: Path.cs プロジェクト: solarplexus6/XamarinGimpSharp
        public void ToSelection(ChannelOps op, bool antialias,
                            bool feather, double feather_radius_x, 
			    double feather_radius_y)
        {
            if (!gimp_path_to_selection(_imageID, _name, op, antialias,
                                  feather, feather_radius_x, feather_radius_y))
            {
              throw new GimpSharpException();
            }
        }
コード例 #30
0
 extern static bool gimp_selection_combine(Int32 channel_ID,
                                           ChannelOps operation);
コード例 #31
0
ファイル: Path.cs プロジェクト: solarplexus6/XamarinGimpSharp
        static extern bool gimp_path_to_selection(Int32 image_ID,
                                              string name, ChannelOps op, 
					      bool antialias,
                                              bool feather,
                                              double feather_radius_x,
                                              double feather_radius_y);
コード例 #32
0
ファイル: Channel.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_channel_combine_masks(Int32 channel1_ID,
     Int32 channel2_ID,
     ChannelOps operation,
     int offx,
     int offy);
コード例 #33
0
ファイル: Channel.cs プロジェクト: unhammer/gimp-sharp
 public void CombineMasks(Channel channel, ChannelOps operation,
     Offset offset)
 {
     CombineMasks(channel, operation, offset.X, offset.Y);
 }
コード例 #34
0
ファイル: Channel.cs プロジェクト: unhammer/gimp-sharp
 public void CombineMasks(Channel channel, ChannelOps operation,
                          Offset offset)
 {
     CombineMasks(channel, operation, offset.X, offset.Y);
 }
コード例 #35
0
ファイル: Vectors.cs プロジェクト: unhammer/gimp-sharp
 public void ToSelection(ChannelOps operation, bool antialias)
 {
     ToSelection(operation, antialias, false, 0, 0);
 }
コード例 #36
0
ファイル: Vectors.cs プロジェクト: unhammer/gimp-sharp
 extern static bool gimp_vectors_to_selection(Int32 vectors_ID,
                                              ChannelOps operation,
                                              bool antialias,
                                              bool feather,
                                              double feather_radius_x,
                                              double feather_radius_y);
コード例 #37
0
ファイル: FreeSelectTool.cs プロジェクト: unhammer/gimp-sharp
 public void Select(CoordinateList<double> segs, ChannelOps operation)
 {
     Select(segs, operation, false, false, 0);
 }
コード例 #38
0
        static extern bool gimp_vectors_to_selection(Int32 vectors_ID,
						 ChannelOps operation,
						 bool antialias,
						 bool feather,
						 double feather_radius_x,
						 double feather_radius_y);
コード例 #39
0
ファイル: Channel.cs プロジェクト: unhammer/gimp-sharp
 static extern bool gimp_channel_combine_masks(Int32 channel1_ID,
                                               Int32 channel2_ID,
                                               ChannelOps operation,
                                               int offx,
                                               int offy);
コード例 #40
0
ファイル: Drawable.cs プロジェクト: unhammer/gimp-sharp
 public void FuzzySelect(double x, double y, int threshold, 
     ChannelOps operation, bool antialias,
     bool feather, double feather_radius,
     bool sample_merged)
 {
     if (!gimp_fuzzy_select(ID, x, y, threshold, operation,
                      antialias, feather, feather_radius,
                      sample_merged))
     {
       throw new GimpSharpException();
     }
 }
コード例 #41
0
ファイル: Channel.cs プロジェクト: unhammer/gimp-sharp
 public void CombineMasks(Channel channel, ChannelOps operation,
     int offx, int offy)
 {
     if (!gimp_channel_combine_masks(ID, channel.ID, operation,
               offx, offy))
     {
       throw new GimpSharpException();
     }
 }
コード例 #42
0
 static extern bool gimp_selection_combine(Int32 channel_ID,
                                        ChannelOps operation);
コード例 #43
0
ファイル: Path.cs プロジェクト: unhammer/gimp-sharp
 extern static bool gimp_path_to_selection(Int32 image_ID,
                                           string name, ChannelOps op,
                                           bool antialias,
                                           bool feather,
                                           double feather_radius_x,
                                           double feather_radius_y);