DropShadowEffect.Color
DropShadowEffect.Color property
Mendapat atau mengatur warna.
public Color Color { get; set; }
Nilai properti
Warna.
Contoh
Kode berikut menunjukkan penggunaan properti Opacity dari 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;
// Contoh dengan Opacity = 20
dropShadowEffect.Opacity = 20;
psdImage.Save(outputImage20, new PngOptions());
// Contoh dengan Opacity = 200
dropShadowEffect.Opacity = 200;
psdImage.Save(outputImage200, new PngOptions());
}
Lihat juga
- struct Color
- class DropShadowEffect
- ruang nama Aspose.PSD.FileFormats.Psd.Layers.LayerEffects
- perakitan Aspose.PSD