Creates the Shadow effect with the specified color, size, offset, and opacity.
Namespace:
Aurigma.GraphicsMill.AdvancedDrawing.Effects
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
public Shadow( Color color, float size, float offsetX, float offsetY, float opacity )
Type: System.Single
The size of the shadow in points.Type: System.Single
The x-coordinate of the offset of the shadow in points.Type: System.Single
The y-coordinate of the offset of the shadow in points.Type: System.Single
The opacity of the shadow.using (var bitmap = new Bitmap(230, 90, PixelFormat.Format24bppRgb, RgbColor.White)) using (var graphics = bitmap.GetAdvancedGraphics()) { using (var shadowingText = new PlainText("Shadowing Text", graphics.CreateFont("Comic", 28))) { shadowingText.Position = new System.Drawing.PointF(10, 30); shadowingText.Brush = new SolidBrush(RgbColor.Blue); shadowingText.Effect = new Shadow(RgbColor.Black, 5, 1, 1, 0.9f); graphics.DrawText(shadowingText); } using (var glowingText = new PlainText("Glowing Text", graphics.CreateFont("Comic", 28))) { glowingText.Position = new System.Drawing.PointF(10, 70); glowingText.Pen = new Pen(RgbColor.Blue); glowingText.Effect = new Glow(RgbColor.Black, 5, 0.5f); graphics.DrawText(glowingText); } bitmap.Save(@"Images\Output\out.png"); }