Devcorner.NIdenticon.IdenticonGenerator.Create C# (CSharp) Méthode

Create() public méthode

public Create ( IPAddress ipaddress ) : Bitmap
ipaddress System.Net.IPAddress
Résultat System.Drawing.Bitmap
        public Bitmap Create(IPAddress ipaddress)
        {
            return this.Create(ipaddress, this.DefaultSize);
        }

Same methods

IdenticonGenerator::Create ( IPAddress ipaddress, Size size ) : Bitmap
IdenticonGenerator::Create ( IPAddress ipaddress, Size size, Color backgroundcolor ) : Bitmap
IdenticonGenerator::Create ( IPAddress ipaddress, Size size, Color backgroundcolor, Size blocks ) : Bitmap
IdenticonGenerator::Create ( IPAddress ipaddress, Size size, Color backgroundcolor, Size blocks, IBlockGenerator blockGenerators ) : Bitmap
IdenticonGenerator::Create ( IPAddress ipaddress, Size size, Color backgroundcolor, Size blocks, IBlockGenerator blockGenerators, IBrushGenerator brushGenerator ) : Bitmap
IdenticonGenerator::Create ( IPAddress ipaddress, Size size, Color backgroundcolor, Size blocks, IBlockGenerator blockGenerators, IBrushGenerator brushGenerator, string algorithm ) : Bitmap
IdenticonGenerator::Create ( byte value ) : Bitmap
IdenticonGenerator::Create ( byte value, Size size ) : Bitmap
IdenticonGenerator::Create ( byte value, Size size, Color backgroundcolor ) : Bitmap
IdenticonGenerator::Create ( byte value, Size size, Color backgroundcolor, Size blocks ) : Bitmap
IdenticonGenerator::Create ( byte value, Size size, Color backgroundcolor, Size blocks, IBlockGenerator blockGenerators ) : Bitmap
IdenticonGenerator::Create ( byte value, Size size, Color backgroundcolor, Size blocks, IBlockGenerator blockGenerators, IBrushGenerator brushGenerator ) : Bitmap
IdenticonGenerator::Create ( byte value, Size size, Color backgroundcolor, Size blocks, IBlockGenerator blockGenerators, IBrushGenerator brushGenerator, string algorithm ) : Bitmap
IdenticonGenerator::Create ( string value ) : Bitmap
IdenticonGenerator::Create ( string value, Size size ) : Bitmap
IdenticonGenerator::Create ( string value, Size size, Color backgroundcolor ) : Bitmap
IdenticonGenerator::Create ( string value, Size size, Color backgroundcolor, Size blocks ) : Bitmap
IdenticonGenerator::Create ( string value, Size size, Color backgroundcolor, Size blocks, Encoding encoding ) : Bitmap
IdenticonGenerator::Create ( string value, Size size, Color backgroundcolor, Size blocks, Encoding encoding, IBlockGenerator blockGenerators ) : Bitmap
IdenticonGenerator::Create ( string value, Size size, Color backgroundcolor, Size blocks, Encoding encoding, IBlockGenerator blockGenerators, IBrushGenerator brushGenerator ) : Bitmap
IdenticonGenerator::Create ( string value, Size size, Color backgroundcolor, Size blocks, Encoding encoding, IBlockGenerator blockGenerators, IBrushGenerator brushGenerator, string algorithm ) : Bitmap

Usage Example

        public ActionResult Index(int dimension, string text)
        {
            text = text ?? HttpContext.Request.UserHostAddress;
            var ic = new IdenticonGenerator();
            ic.DefaultBrushGenerator = new StaticColorBrushGenerator(StaticColorBrushGenerator.ColorFromText(text));
            var bitmap = ic.Create(text, new Size(dimension, dimension));

            var ms = new MemoryStream();
            bitmap.Save(ms, ImageFormat.Png);

            return File(ms.ToArray(), "image/png");
        }
All Usage Examples Of Devcorner.NIdenticon.IdenticonGenerator::Create