Supports the image border in building a border
public: class BorderBuilder;
public sealed class BorderBuilder;
Public sealed Class BorderBuilder
The BorderBuilder is used by PhotoController to generate image border. It defines the layout of the image border and some brush styles that can be used to draw borders. You can modify the brush properties, such as colors, to customize the border. This can be done by assigning Brush property of the BorderBuilder.
[C#]
BorderBuilder bbuilder = new BorderBuilder(); PathGradientBrush b = BorderBuilder.CreateSawtoothBrush(20); b.CenterColor = Color.SkyBlue; b.SurroundColors = new Color[] { Color.DarkCyan, Color.Khaki }; bbuilder.Length = 20; bbuilder.Alignment = BorderAlignment.ALL; bbuilder.Brush = b; PhotoController pc = new PhotoController("myimage.jpg"); Image img = pc.SetBorder(bbuilder); pc.Dispose();
IC.PhotoController.Border.BorderBuilder
BorderBuilder.cs
|
Send comments about this topic.
|
|
Copyright (c) 2008-2009 @ ImageComponent.NET. All rights reserved.
|