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.
Public Class SpecialEffectsProcessor
public class SpecialEffectsProcessor public ref class SpecialEffectsProcessor For more information on how to use this class, refer to Implementing Special Effects.
This example shows the minimum requirements for using the Draw3dText(graphics,string,rectangle,specialeffectstextstyle,specialeffectstextalignmentflags,int32,int32,color,color,color,font,image) method.
using Leadtools;using Leadtools.Codecs;using Leadtools.SpecialEffects;using Leadtools.Drawing;public void Draw3dText(Graphics g, Rectangle destRect){SpecialEffectsProcessor processor = new SpecialEffectsProcessor();Font textFont = new Font("Arial", 24);Image image = Image.FromFile(Path.Combine(LEAD_VARS.ImagesDir, "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();}static class LEAD_VARS{public const string ImagesDir = @"C:\Users\Public\Documents\LEADTOOLS Images";}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.SpecialEffectsImports Leadtools.DrawingPublic 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(Path.Combine(LEAD_VARS.ImagesDir, "Ulay1.bmp"))processor.Draw3dText(g, "3D Text - LEADTOOLS", destRect, SpecialEffectsTextStyle.DropShadow, SpecialEffectsTextAlignmentFlags.HorizontalCenter OrSpecialEffectsTextAlignmentFlags.VerticalCenter, 2, 2, Color.Blue, Color.Black, Color.White, textFont, img)img.Dispose()End SubPublic NotInheritable Class LEAD_VARSPublic Const ImagesDir As String = "C:\Users\Public\Documents\LEADTOOLS Images"End Class
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
