IReceiptOrSlipJob.SetCustomAlignedBitmap 方法

定义

重载

SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32)

保存有关位图的信息以及要在收据或单据打印机站上打印该位图的最左侧打印列的距离,以便以后可以使用 PrintSavedBitmap 方法将该信息添加到打印作业。

SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32, UInt32)

保存有关位图的信息,以及要用于在收据或单据打印机站上打印该位图的最左侧打印列的宽度和距离,以便以后可以使用 PrintSavedBitmap 方法将该信息添加到打印作业。

SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32)

保存有关位图的信息以及要在收据或单据打印机站上打印该位图的最左侧打印列的距离,以便以后可以使用 PrintSavedBitmap 方法将该信息添加到打印作业。

public:
 void SetCustomAlignedBitmap(unsigned int bitmapNumber, BitmapFrame ^ bitmap, unsigned int alignmentDistance);
/// [Windows.Foundation.Metadata.Overload("SetCustomAlignedBitmap")]
void SetCustomAlignedBitmap(uint32_t const& bitmapNumber, BitmapFrame const& bitmap, uint32_t const& alignmentDistance);
[Windows.Foundation.Metadata.Overload("SetCustomAlignedBitmap")]
public void SetCustomAlignedBitmap(uint bitmapNumber, BitmapFrame bitmap, uint alignmentDistance);
function setCustomAlignedBitmap(bitmapNumber, bitmap, alignmentDistance)
Public Sub SetCustomAlignedBitmap (bitmapNumber As UInteger, bitmap As BitmapFrame, alignmentDistance As UInteger)

参数

bitmapNumber
UInt32

unsigned int

uint32_t

要分配给此位图的数字。 可以设置两个位图,编号为 1 和 2。 稍后将此数字与 PrintSavedBitmap 方法结合使用,将打印说明添加到打印作业。

bitmap
BitmapFrame

有关要打印的位图的信息。

alignmentDistance
UInt32

unsigned int

uint32_t

从最左侧打印列到位图开头的距离,以 ClaimedPosPrinter.MapMode 属性指示的度量单位表示。

属性

另请参阅

适用于

SetCustomAlignedBitmap(UInt32, BitmapFrame, UInt32, UInt32)

保存有关位图的信息,以及要用于在收据或单据打印机站上打印该位图的最左侧打印列的宽度和距离,以便以后可以使用 PrintSavedBitmap 方法将该信息添加到打印作业。

public:
 void SetCustomAlignedBitmap(unsigned int bitmapNumber, BitmapFrame ^ bitmap, unsigned int alignmentDistance, unsigned int width);
/// [Windows.Foundation.Metadata.Overload("SetBitmapCustomWidthCustomAlign")]
void SetCustomAlignedBitmap(uint32_t const& bitmapNumber, BitmapFrame const& bitmap, uint32_t const& alignmentDistance, uint32_t const& width);
[Windows.Foundation.Metadata.Overload("SetBitmapCustomWidthCustomAlign")]
public void SetCustomAlignedBitmap(uint bitmapNumber, BitmapFrame bitmap, uint alignmentDistance, uint width);
function setCustomAlignedBitmap(bitmapNumber, bitmap, alignmentDistance, width)
Public Sub SetCustomAlignedBitmap (bitmapNumber As UInteger, bitmap As BitmapFrame, alignmentDistance As UInteger, width As UInteger)

参数

bitmapNumber
UInt32

unsigned int

uint32_t

要分配给此位图的数字。 可以设置两个位图,编号为 1 和 2。 稍后将此数字与 PrintSavedBitmap 方法结合使用,将打印说明添加到打印作业。

bitmap
BitmapFrame

有关要打印的位图的信息。

alignmentDistance
UInt32

unsigned int

uint32_t

从最左侧打印列到位图开头的距离,以 ClaimedPosPrinter.MapMode 属性指示的度量单位表示。

width
UInt32

unsigned int

uint32_t

用于打印位图的宽度,以 ClaimedPosPrinter.MapMode 属性指示的度量单位表示。

属性

另请参阅

适用于