Tutorial > Shadow Sample
Sample of Watermark Text with Shadow

This artical is going to demostrate the shadow of watermark text.

The sample code below initialize the objects needed

[Visual Basic]

Dim image As Image
Dim bitmap As New Bitmap (320,120)
image = (Image) bitmap
Dim objWriter As New angGoGo.CoolWatermark.Writer( Image )
objWriter.FontFamily = " Arial "
objWriter.FontSize = 48

objWriter.PositionStyle = PositionStyle.MiddleCenter


[C#]

Image image;
Bitmap bitmap = new Bitmap(320,120);
image = (Image)bitmap;
angGoGo.CoolWatermark.Writer objWriter = new Writer(image);
objWriter.FontFamily = "Arial";
objWriter.FontSize = 48;
objWriter.PositionStyle = PositionStyle.MiddleCenter;


Shadow Example 1

Border.Color = C0C0C0
Border.OffsetX = 3
Border.OffsetY = 3

Shadow Exmaple 2

Border.Color = FFFFFF
Border.OffsetX = -1
Border.OffsetY = -1

 

Send comments about this topic.
Copyright (c) 2006 @ ImageComponent.NET. All rights reserved.