예제 #1
0
    static extern Int32 gimp_layer_new (Int32 image_ID,
					string name,
					int width,
					int height,
					ImageType type,
					double opacity,
					LayerModeEffects mode);
예제 #2
0
        public Layer(Image image, string name, int width, int height, 
            ImageType type, double opacity = 100,
            LayerModeEffects mode = LayerModeEffects.Normal)
            : base(gimp_layer_new(image.ID, name, width, height, type, 
			  opacity, mode))
        {
        }
예제 #3
0
 public Layer(Image image, string name, int width, int height,
              ImageType type, double opacity = 100,
              LayerModeEffects mode          = LayerModeEffects.Normal) :
     base(gimp_layer_new(image.ID, name, width, height, type,
                         opacity, mode))
 {
 }
예제 #4
0
        override public bool Execute()
        {
            SelectedLayer.Opacity = _opacity;
            LayerModeEffects mode = LayerModeEffects.Normal;

            switch (_mode.Value)
            {
            case "Nrml":
                SelectedLayer.Mode = LayerModeEffects.Normal;
                break;

            default:
                Console.WriteLine("FadeEvent: unknown mode: " + _mode.Value);
                break;
            }

            SelectedLayer = ActiveImage.MergeDown(SelectedLayer,
                                                  MergeType.ExpandAsNecessary);

            return(true);
        }
예제 #5
0
 static extern bool gimp_context_set_paint_mode(LayerModeEffects paint_mode);
예제 #6
0
 static extern bool gimp_context_set_paint_mode(LayerModeEffects paint_mode);
예제 #7
0
 public void EditBucketFill(BucketFillMode fillMode,
     LayerModeEffects paintMode,
     double opacity,
     double threshold,
     bool sampleMerged,
     bool fillTransparent,
     SelectCriterion selectCriterion,
     double x,
     double y)
 {
     if (!gimp_edit_bucket_fill_full(ID, fillMode, paintMode, opacity,
               threshold, sampleMerged, fillTransparent,
               selectCriterion, x, y))
     {
       throw new GimpSharpException();
     }
 }
예제 #8
0
 public void EditBucketFill(BucketFillMode fillMode,
     LayerModeEffects paintMode,
     double opacity,
     double threshold,
     bool sampleMerged,
     double x,
     double y)
 {
     if (!gimp_edit_bucket_fill(ID, fillMode, paintMode, opacity,
          threshold, sampleMerged, x, y))
     {
       throw new GimpSharpException();
     }
 }
예제 #9
0
 public void EditBlend(BlendMode blend_mode,
     LayerModeEffects paint_mode,
     GradientType gradient_type,
     double opacity,
     double offset,
     RepeatMode repeat,
     bool reverse,
     bool supersample,
     int max_depth,
     double threshold,
     bool dither,
     double x1,
     double y1,
     double x2,
     double y2)
 {
     if (!gimp_edit_blend(ID, blend_mode, paint_mode, gradient_type,
        opacity, offset, repeat, reverse, supersample,
        max_depth, threshold, dither, x1, y1, x2, y2))
     {
       throw new GimpSharpException();
     }
 }
예제 #10
0
 static extern bool gimp_edit_bucket_fill_full(Int32 drawable_ID,
     BucketFillMode fill_mode,
     LayerModeEffects paint_mode,
     double opacity,
     double threshold,
     bool sample_merged,
     bool fill_transparent,
     SelectCriterion select_criterion,
     double x,
     double y);
예제 #11
0
 static extern bool gimp_edit_blend(Int32 drawable_ID,
     BlendMode blend_mode,
     LayerModeEffects paint_mode,
     GradientType gradient_type,
     double opacity,
     double offset,
     RepeatMode repeat,
     bool reverse,
     bool supersample,
     int max_depth,
     double threshold,
     bool dither,
     double x1,
     double y1,
     double x2,
     double y2);
예제 #12
0
    static extern bool gimp_layer_set_mode (Int32 layer_ID,
					    LayerModeEffects mode);
예제 #13
0
 public Layer(Image image, string name, ImageType type, 
     double opacity = 100,
     LayerModeEffects mode = LayerModeEffects.Normal)
     : this(image, name, image.Width, image.Height, type, opacity, mode)
 {
 }
예제 #14
0
 static extern bool gimp_layer_set_mode(Int32 layer_ID,
     LayerModeEffects mode);
예제 #15
0
 static extern bool gimp_edit_bucket_fill(Int32 drawable_ID,
     BucketFillMode fill_mode,
     LayerModeEffects paint_mode,
     double opacity,
     double threshold,
     bool sample_merged,
     double x,
     double y);
예제 #16
0
 public Layer(Image image, string name, ImageType type,
              double opacity        = 100,
              LayerModeEffects mode = LayerModeEffects.Normal) :
     this(image, name, image.Width, image.Height, type, opacity, mode)
 {
 }
예제 #17
0
 static extern Int32 gimp_layer_new(Int32 image_ID,
     string name,
     int width,
     int height,
     ImageType type,
     double opacity,
     LayerModeEffects mode);