C# Class RandomAvatar.RandomAvatarBuilder

Afficher le fichier Open project: chsword/random-avatar Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
RandomAvatarBuilder ( int size, bool isSymmetry = true ) : System

Method Details

Build() public static méthode

public static Build ( int size, bool isSymmetry = true ) : RandomAvatarBuilder
size int
isSymmetry bool
Résultat RandomAvatarBuilder

FixedSeed() public méthode

public FixedSeed ( bool fixedSeed, string seed ) : RandomAvatarBuilder
fixedSeed bool
seed string
Résultat RandomAvatarBuilder

ImageToBuffer() public static méthode

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

SetAsymmetry() public méthode

public SetAsymmetry ( bool isSymmetry = true ) : RandomAvatarBuilder
isSymmetry bool
Résultat RandomAvatarBuilder

SetBlockSize() public méthode

public SetBlockSize ( int blockSize ) : RandomAvatarBuilder
blockSize int
Résultat RandomAvatarBuilder

SetFontColor() public méthode

public SetFontColor ( Color fontColor ) : RandomAvatarBuilder
fontColor Color
Résultat RandomAvatarBuilder

SetPadding() public méthode

public SetPadding ( int padding ) : RandomAvatarBuilder
padding int
Résultat RandomAvatarBuilder

ToBytes() public méthode

public ToBytes ( ) : byte[]
Résultat byte[]

ToImage() public méthode

public ToImage ( ) : Image
Résultat Image