DropShadowEffect.IsVisible
Contents
[
Hide
]DropShadowEffect.IsVisible property
Gets or sets a value indicating whether this instance is visible.
public bool IsVisible { get; set; }
Property Value
true
if this instance is visible; otherwise, false
.
Examples
The following code demonstrates using the Opacity property of DropShadowEffect.
[C#]
string inputFile = "input.psd";
string outputImage20 = "outputImage20.png";
string outputImage200 = "outputImage200.png";
using (PsdImage psdImage = (PsdImage)Image.Load(inputFile, new LoadOptions()))
{
Layer workLayer = psdImage.Layers[1];
DropShadowEffect dropShadowEffect = workLayer.BlendingOptions.AddDropShadow();
dropShadowEffect.Distance = 0;
dropShadowEffect.Size = 8;
// Example with Opacity = 20
dropShadowEffect.Opacity = 20;
psdImage.Save(outputImage20, new PngOptions());
// Example with Opacity = 200
dropShadowEffect.Opacity = 200;
psdImage.Save(outputImage200, new PngOptions());
}
See Also
- class DropShadowEffect
- namespace Aspose.PSD.FileFormats.Psd.Layers.LayerEffects
- assembly Aspose.PSD