The SpecialEffectsProcessor class gives you precise control over a large variety of effects when you paint bitmaps, text, patterns, and shapes onto a device context.
Syntax
Visual Basic (Declaration) |
|
Public Class SpecialEffectsProcessor |
C# |
|
public class SpecialEffectsProcessor |
C++/CLI |
|
public ref class SpecialEffectsProcessor |
Example
This example shows the minimum requirements for using the Draw3dText method.
Visual Basic |
Copy Code |
Public Sub Draw3dText(ByVal g As Graphics, ByVal destRect As Rectangle) Dim processor As SpecialEffectsProcessor = New SpecialEffectsProcessor() Dim textFont As Font = New Font("Arial", 24)
Dim img As Image = Image.FromFile(LeadtoolsExamples.Common.ImagesPath.Path + "Ulay1.bmp")
processor.Draw3dText(g, "3D Text - LEADTOOLS", destRect, SpecialEffectsTextStyle.DropShadow, SpecialEffectsTextAlignmentFlags.HorizontalCenter Or SpecialEffectsTextAlignmentFlags.VerticalCenter, 2, 2, Color.Blue, Color.Black, Color.White, textFont, img)
img.Dispose() End Sub |
C# |
Copy Code |
public void Draw3dText(Graphics g, Rectangle destRect) { SpecialEffectsProcessor processor = new SpecialEffectsProcessor(); Font textFont = new Font("Arial", 24); Image image = Image.FromFile(LeadtoolsExamples.Common.ImagesPath.Path + "Ulay1.bmp"); processor.Draw3dText(g, "3D Text - LEADTOOLS", destRect, SpecialEffectsTextStyle.DropShadow, SpecialEffectsTextAlignmentFlags.HorizontalCenter | SpecialEffectsTextAlignmentFlags.VerticalCenter, 2, /* horizontal shadow position */ 2, /* vertical shadow position */ Color.Blue, /* text color, blue */ Color.Black,/* shadow color, black */ Color.White, /* border color, white */ textFont, image); image.Dispose(); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also