DEXTUpload.NET
Class PatternOption
- The minimum supported version
- 5.0.0.0
- The minimum support environment
- .NET Framework 4.0
- Explanation
-
The "PatternOption" is a class that contains the settings needed when overlapping patterns(images and text) on top of the original image.
The difference from pattern and overlay is that former has a step to lay a image or a text as checkerboard after copying them.
The "PatternOption" object is used as a parameter of the "Pattern" method of the "DEXTUpload.NET.ImageProc" class.
var source = new FileInfo("source.jpg"); var pattern = new FileInfo("pattern.png"); var patterned = ImageProc.Pattern(source, pattern, new PatternOption { Threshold = 0.2f, Opacity = 0.5f });
- Type
-
public class PatternOption
- Constructors
-
PatternOption
-
Does initialization when creating an instance of the "PatternOption" class.
-
Type
public PatternOption() public PatternOption(float threshold, float opacity)
-
Parameters
Name Type Explanation threshold System.Single A pattern magnification. opacity System.Single The opacity of the object to be overlayed.
-
- Properties
-
Threshold
-
Gets or sets the pattern magnification.
If the pattern object is a image, the range of magnification must be 0-1, text Conversely, a range of 1 to 10.
-
Type
public float Threshold { get; set; }
Opacity
-
Gets or sets the pattern opacity.
The opacity range is from 0 to 1. The value becomes lower, it becomes more transparent. The default value is 0.25.
-
Type
public float Opacity { get; set; }
-