C# Class RandomAvatar.RandomAvatarBuilder

Mostrar archivo Open project: chsword/random-avatar Class Usage Examples

Public Methods

Method Description
Build ( int size, bool isSymmetry = true ) : RandomAvatarBuilder
FixedSeed ( bool fixedSeed, string seed ) : RandomAvatarBuilder
ImageToBuffer ( Image image, ImageFormat imageFormat ) : byte[]
SetAsymmetry ( bool isSymmetry = true ) : RandomAvatarBuilder
SetBlockSize ( int blockSize ) : RandomAvatarBuilder
SetFontColor ( Color fontColor ) : RandomAvatarBuilder
SetPadding ( int padding ) : RandomAvatarBuilder
ToBytes ( ) : byte[]
ToImage ( ) : Image

Private Methods

Method Description
RandomAvatarBuilder ( int size, bool isSymmetry = true ) : System

Method Details

Build() public static method

public static Build ( int size, bool isSymmetry = true ) : RandomAvatarBuilder
size int
isSymmetry bool
return RandomAvatarBuilder

FixedSeed() public method

public FixedSeed ( bool fixedSeed, string seed ) : RandomAvatarBuilder
fixedSeed bool
seed string
return RandomAvatarBuilder

ImageToBuffer() public static method

public static ImageToBuffer ( Image image, ImageFormat imageFormat ) : byte[]
image Image
imageFormat System.Drawing.Imaging.ImageFormat
return byte[]

SetAsymmetry() public method

public SetAsymmetry ( bool isSymmetry = true ) : RandomAvatarBuilder
isSymmetry bool
return RandomAvatarBuilder

SetBlockSize() public method

public SetBlockSize ( int blockSize ) : RandomAvatarBuilder
blockSize int
return RandomAvatarBuilder

SetFontColor() public method

public SetFontColor ( Color fontColor ) : RandomAvatarBuilder
fontColor Color
return RandomAvatarBuilder

SetPadding() public method

public SetPadding ( int padding ) : RandomAvatarBuilder
padding int
return RandomAvatarBuilder

ToBytes() public method

public ToBytes ( ) : byte[]
return byte[]

ToImage() public method

public ToImage ( ) : Image
return Image