Exemplo n.º 1
0
 public void Combine(Channel channel, ChannelOps operation)
 {
     if (!gimp_selection_combine(channel.ID, operation))
     {
         throw new GimpSharpException();
     }
 }
Exemplo n.º 2
0
 static extern bool gimp_free_select(Int32 image_ID,
     int num_segs,
     double[] segs,
     ChannelOps operation,
     bool antialias,
     bool feather,
     double feather_radius);
Exemplo n.º 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);
        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);
        static extern bool gimp_rect_select(Int32 image_ID,
					double x,
					double y,
					double width,
					double height,
					ChannelOps operation,
					bool feather,
					double feather_radius);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 9
0
 // 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();
     }
 }
        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);
Exemplo n.º 11
0
 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();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 13
0
 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();
     }
 }
Exemplo n.º 14
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();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
            }
        }
        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();
            }
        }
Exemplo n.º 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);
        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();
            }
        }
Exemplo n.º 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();
            }
        }
        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();
            }
        }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
            }
        }
        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);
Exemplo n.º 26
0
 public void ToSelection(ChannelOps operation, bool antialias)
 {
     ToSelection(operation, antialias, false, 0, 0);
 }
Exemplo n.º 27
0
 public void Combine(Channel channel, ChannelOps operation)
 {
     if (!gimp_selection_combine(channel.ID, operation))
     {
       throw new GimpSharpException();
     }
 }
Exemplo n.º 28
0
 public void Select(CoordinateList <double> segs, ChannelOps operation)
 {
     Select(segs, operation, false, false, 0);
 }
Exemplo n.º 29
0
        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();
            }
        }
Exemplo n.º 30
0
 extern static bool gimp_selection_combine(Int32 channel_ID,
                                           ChannelOps operation);
Exemplo n.º 31
0
        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);
Exemplo n.º 32
0
 static extern bool gimp_channel_combine_masks(Int32 channel1_ID,
     Int32 channel2_ID,
     ChannelOps operation,
     int offx,
     int offy);
Exemplo n.º 33
0
 public void CombineMasks(Channel channel, ChannelOps operation,
     Offset offset)
 {
     CombineMasks(channel, operation, offset.X, offset.Y);
 }
Exemplo n.º 34
0
 public void CombineMasks(Channel channel, ChannelOps operation,
                          Offset offset)
 {
     CombineMasks(channel, operation, offset.X, offset.Y);
 }
Exemplo n.º 35
0
 public void ToSelection(ChannelOps operation, bool antialias)
 {
     ToSelection(operation, antialias, false, 0, 0);
 }
Exemplo n.º 36
0
 extern static bool gimp_vectors_to_selection(Int32 vectors_ID,
                                              ChannelOps operation,
                                              bool antialias,
                                              bool feather,
                                              double feather_radius_x,
                                              double feather_radius_y);
Exemplo n.º 37
0
 public void Select(CoordinateList<double> segs, ChannelOps operation)
 {
     Select(segs, operation, false, false, 0);
 }
Exemplo n.º 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);
Exemplo n.º 39
0
 static extern bool gimp_channel_combine_masks(Int32 channel1_ID,
                                               Int32 channel2_ID,
                                               ChannelOps operation,
                                               int offx,
                                               int offy);
Exemplo n.º 40
0
 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();
     }
 }
Exemplo n.º 41
0
 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();
     }
 }
Exemplo n.º 42
0
 static extern bool gimp_selection_combine(Int32 channel_ID,
                                        ChannelOps operation);
Exemplo n.º 43
0
 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);