📄 barcodesaveimage.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>SaveImage Method</TITLE>
</HEAD>
<body topmargin="0">
<font size="-1"> Barcode .Net Class Library</font>
<H3>SaveImage 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 saves it to a file.</P>
<PRE><font size="-1">[Visual Basic]</font>
<B>Public Sub SaveImage( </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>pathFile</i> <b>As</b> String _
)
</B>
<font size="-1">[C#]</font>
<B>public void SaveImage(</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>,
string <i>pathFile</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>pathFile</I></DT>
<DD>The full path name of the file the generated image is to be saved to.</dd>
</DL>
<H4 class="dtH4">See Also</H4>
<P><A HREF="barcodeMakeImage.htm">MakeImage</A></P>
<HR>
<font size="-1">© 2002 Bokai Corporation. All rights reserved.</font>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -