C# 클래스 Cryptid.CardGenerator

Generates a Cryptid ID card image for a specified candidate
파일 보기 프로젝트 열기: CryptidID/Cryptid 1 사용 예제들

공개 메소드들

메소드 설명
CardGenerator ( Candidate cardCandidate, string pdfTemplateFile ) : System

Creates a new CardGenerator instance

Generate ( string outputFile, byte chainId ) : void

Generates the Cryptid ID card

ImageToBitmap ( Image img ) : Bitmap

Converts an iText image to a Bitmap

비공개 메소드들

메소드 설명
TrimBitmap ( Bitmap source ) : Bitmap

Trims the whitespace around a bitmap

메소드 상세

CardGenerator() 공개 메소드

Creates a new CardGenerator instance
public CardGenerator ( Candidate cardCandidate, string pdfTemplateFile ) : System
cardCandidate Candidate The candidate to create the card for
pdfTemplateFile string The PDF template to generate the card
리턴 System

Generate() 공개 메소드

Generates the Cryptid ID card
public Generate ( string outputFile, byte chainId ) : void
outputFile string The locaton to output the Cryptid ID
chainId byte The chainId of this candidate
리턴 void

ImageToBitmap() 공개 메소드

Converts an iText image to a Bitmap
public ImageToBitmap ( Image img ) : Bitmap
img iTextSharp.text.Image The iText image
리턴 System.Drawing.Bitmap