Note that there are some explanatory texts on larger screens.

plurals
  1. PORemove Text from below of the BarCode in ASP.NET(C#)
    text
    copied!<p>I am generating the barcode generation of barcode is working fine barcode also read it perfectly.followin is the code for barcode generation:</p> <pre><code>private void GenerateBarCode(string codeInfo) { //Settings for the Image string TypeFaceName = "IDAutomationHC39M"; string imageLocation = Server.MapPath("2010.png"); //The format of the image file ImageFormat format = ImageFormat.Png; //path of unique file name string path = "D://MyProjects//RepeaterPaging//images//vijendra.png"; //REFERENCING A FONT PrivateFontCollection fnts = new PrivateFontCollection(); fnts.AddFontFile("IDAutomationHC39M.ttf"); FontFamily fntfam = new FontFamily(TypeFaceName); Font fnt = new Font(fntfam, 13); fnts.AddFontFile("Arial.ttf"); FontFamily fntfam2 = new FontFamily("Arial", fnts); //DRAWING THE IMAGE Bitmap bmp = new Bitmap(960, 386); //Canvas size Graphics g = Graphics.FromImage(bmp); Bitmap orignBitmap = new Bitmap(imageLocation); g.Clear(Color.Transparent); //Background color SizeF bc = g.MeasureString(codeInfo, fnt); Brush br = new SolidBrush(Color.Black); g.DrawImage(orignBitmap, 10, 8); g.DrawString(codeInfo, fnt, br, 585, 170); //Drawing the Image g.TextRenderingHint= bmp.Save(path, format); //Saving the Image file bmp.Dispose(); //Releasing all resources (Image file) Response.Clear(); } </code></pre> <p><a href="http://www.freeimagehosting.net/uploads/0e033f305b.png" rel="nofollow noreferrer">alt text http://www.freeimagehosting.net/uploads/0e033f305b.png</a></p> <p>Now I want to remove the text which is below of the barcode. how can I do this?.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload