DEXTUpload.NET Professional
menu toggleReferences > DEXTUpload.NET > OverlayOption

DEXTUpload.NET
Class OverlayOption

The minimum supported version
5.0.0.0
The minimum support environment
.NET Framework 4.0
Explanation

The "OverlayOption" is a class that contains the settings needed to represent overlapping a different image or text on top of the original image.

A "OverlayOption" object is used as a parameter of the "Overlay" method of the "DEXTUpload.NET.ImageProc" class.

var source = new FileInfo("source.jpg");
var target = new FileInfo("target.png");

var overlayed = ImageProc.Overlay(source, target, new OverlayOption {
    X = 100,
    Y = 100,
    Opacity = 0.5f
});
Type
public class OverlayOption
Constructors

OverlayOption

  • Does initialization when creating an instance of the "OverlayOption" class.

  • Type

    public OverlayOption()
    public OverlayOption(int x, int y, float opacity)
  • Parameters

    Name Type Explanation
    x System.Int32 The position on the x-axis to overlay target.
    y System.Int32 The position on the y-axis to overlay target.
    opacity System.Single The opacity of the object to be overlayed.
Properties

X

  • Gets or sets the position(pixel) of the x-axis to overlay a image and a text.

    The default value is 0.

  • Type

    public int X { get; set; }

Y

  • Gets or sets the position(pixel) of the y-axis to overlay a image and a text.

    The default value is 0.

  • Type

    public int Y { get; set; }

Opacity

  • Gets or sets the opacity(0~1.0f) of a image or a text to overlay.

    The opacity range is from 0 to 1.0. The value becomes lower, it becomes more transparent.

    The default value is 0.25.

  • Type

    public float Opacity { get; set; }