static extern Int32 gimp_layer_new (Int32 image_ID, string name, int width, int height, ImageType type, double opacity, LayerModeEffects mode);
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)) { }
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); }
static extern bool gimp_context_set_paint_mode(LayerModeEffects paint_mode);
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(); } }
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(); } }
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(); } }
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);
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);
static extern bool gimp_layer_set_mode (Int32 layer_ID, LayerModeEffects mode);
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) { }
static extern bool gimp_layer_set_mode(Int32 layer_ID, LayerModeEffects mode);
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);
static extern Int32 gimp_layer_new(Int32 image_ID, string name, int width, int height, ImageType type, double opacity, LayerModeEffects mode);