protected void Page_Load(object sender, EventArgs e)
{ string Code = Request["Kod"].ToString();
int w = Code.Length * 28;
Bitmap oBitmap = new Bitmap(w, 100);
Graphics oGraphics = Graphics.FromImage(oBitmap);
Font oFont = new Font(”IDAutomationHC39M”, 18);
PointF oPoint = new PointF(2f, 2f);
SolidBrush oBrushWrite = new SolidBrush(Color.Black);
SolidBrush oBrush = new SolidBrush(Color.White);
oGraphics.FillRectangle(oBrush, 0, 0, w, 100);
oGraphics.DrawString(Code, oFont, oBrushWrite, oPoint);
Response.ContentType = “image/jpeg”;
oBitmap.Save(Response.OutputStream, ImageFormat.Jpeg);}