⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 barcodemakeimage.htm

📁 非常实用的条形码制作工具
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML DIR="LTR"><HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>MakeImage Method</TITLE>
</HEAD>
<body topmargin="0">
<font size="-1">&nbsp;Barcode .Net Class Library</font>
<H3>MakeImage Method</H3>
<p><b>Applies To:</b> <A HREF="barcodeClass.htm">Barcode</A> |
<A HREF="barcodeControlClass.htm">BarcodeControl</A> |
<A HREF="barcodeImageClass.htm">BarcodeImage</A>

<P>Generates a barcode image and writes it to an output stream.</P>

<PRE><font size="-1">[Visual&nbsp;Basic]</font>
<B>Public Sub MakeImage( </b>_
   <b>ByVal</b> <i>imageFormat</i> <b>As</b> ImageFormat, _
   <b>ByVal</b> <i>barcodeWidth</i> <b>As</b> Integer, _
   <b>ByVal</b> <i>barcodeHeight</i> <b>As</b> Integer, _
   <b>ByVal</b> <i>isBarWidth</i> <b>As</b> Boolean, _
   <b>ByVal</b> <i>transparent</i> <b>As</b> Boolean, _
   <b>ByVal</b> <i>textOnly</i> <b>As</b> String, _
   <b>ByVal</b> <i>os</i> <b>As</b> Stream _
)
</B>
<font size="-1">[C#]</font>
<B>public void MakeImage(</b>
   ImageFormat <i>imageFormat</i>, 
   int <i>barcodeWidth</i>, 
   int <i>barcodeHeight</i>, 
   bool <i>isBarWidth</i>, 
   bool <i>transparent</i>, 
   string <i>textOnly</i>, 
   Stream <i>os</i>
<b>);</B>
</PRE>
<H4>Parameters</H4>
<DL><DT><I>imageFormat</I></DT>
<DD>A System.Drawing.Imaging.ImageFormat enumeration indicating the format the image is to be generated in.</dd>
<DT><I>barcodeWidth</I></DT>
<DD>Specifies the desired barcode width in pixels; depending on the <a href="barcodeOrientation.htm">Orientation</a>, 
this may either be the barcode <i>image</i> width or height.
Also, this is either the entire barcode width or the width of the thinnest barcode bar, 
depending on the <I>isBarWidth</I> argument.</dd>
<DT><I>barcodeHeight</I></DT>
<DD>Specifies the desired barcode height in pixels; depending on the <a href="barcodeOrientation.htm">Orientation</a>, 
this may either be the barcode <i>image</i> height or width.</dd>
<DT><I>isBarWidth</I></DT>
<DD>If this is false, <I>barcodeWidth</I> is the width of the entire barcode; otherwise, it's
the width of the thinnest barcode bar.</dd>
<DT><I>transparent</I></DT>
<DD>Specifies whether the barcode image generated is transparent. This is applicable only if
the image format supports transparency (for example, GIF).</dd>
<DT><I>textOnly</I></DT>
<DD>If this argument is not null, the string it points to will be drawn, in place of a barcode image.</dd>
<DT><I>os</I></DT>
<DD>The System.IO.Stream object the generated image is to be written to.</dd>
</DL>

<H4>Remarks</H4>
<P>The <i>os</i> parameter may need to be a <i>seekable</i> output stream depending on the image format
used; for example, the PNG codec in .Net Framework V1.0 requires a seekable output stream. 
When this does not fit you, you will need to use an intermediary <i>memory stream</i>.

<H4 class="dtH4">See Also</H4>
<P><A HREF="barcodeSaveImage.htm">SaveImage</A></P>
<HR>
<font size="-1">&copy; 2002 Bokai Corporation. All rights reserved.</font>
</BODY>
</HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -