Share via


SlipPrintJob.SetBitmap Method

Definition

Overloads

SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment)

Saves information about a bitmap and a standard horizontal placement that you want to use to print that bitmap on the slip printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment, UInt32)

Saves information about a bitmap, along with the width and a standard horizontal placement that you want to use to print that bitmap on the slip printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment)

Saves information about a bitmap and a standard horizontal placement that you want to use to print that bitmap on the slip printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

public:
 virtual void SetBitmap(unsigned int bitmapNumber, BitmapFrame ^ bitmap, PosPrinterAlignment alignment) = SetBitmap;
/// [Windows.Foundation.Metadata.Overload("SetBitmap")]
void SetBitmap(uint32_t const& bitmapNumber, BitmapFrame const& bitmap, PosPrinterAlignment const& alignment);
[Windows.Foundation.Metadata.Overload("SetBitmap")]
public void SetBitmap(uint bitmapNumber, BitmapFrame bitmap, PosPrinterAlignment alignment);
function setBitmap(bitmapNumber, bitmap, alignment)
Public Sub SetBitmap (bitmapNumber As UInteger, bitmap As BitmapFrame, alignment As PosPrinterAlignment)

Parameters

bitmapNumber
UInt32

unsigned int

uint32_t

The number that you want to assign to this bitmap. You can set two bitmaps, numbered 1 and 2. Use this number with the PrintSavedBitmap method later to add the print instructions to the print job.

bitmap
BitmapFrame

Information about the bitmap that you want to print.

alignment
PosPrinterAlignment

An enumeration value that specifies a standard horizontal placement on the page for the bitmap, such as left-aligned, centered, or right-aligned.

Implements

M:Windows.Devices.PointOfService.IReceiptOrSlipJob.SetBitmap(System.UInt32,Windows.Graphics.Imaging.BitmapFrame,Windows.Devices.PointOfService.PosPrinterAlignment) M:Windows.Devices.PointOfService.IReceiptOrSlipJob.SetBitmap(unsigned int,Windows.Graphics.Imaging.BitmapFrame,Windows.Devices.PointOfService.PosPrinterAlignment) M:Windows.Devices.PointOfService.IReceiptOrSlipJob.SetBitmap(uint32_t,Windows.Graphics.Imaging.BitmapFrame,Windows.Devices.PointOfService.PosPrinterAlignment)
Attributes

Remarks

If the printer for the print job has non-volatile bitmap storage, this method saves the bitmap to the printer hardware, which can cause wear and damage to the flash storage for the printer.

See also

Applies to

SetBitmap(UInt32, BitmapFrame, PosPrinterAlignment, UInt32)

Saves information about a bitmap, along with the width and a standard horizontal placement that you want to use to print that bitmap on the slip printer station, so that you can use the PrintSavedBitmap method to add that information to the print job later.

public:
 virtual void SetBitmap(unsigned int bitmapNumber, BitmapFrame ^ bitmap, PosPrinterAlignment alignment, unsigned int width) = SetBitmap;
/// [Windows.Foundation.Metadata.Overload("SetBitmapCustomWidthStandardAlign")]
void SetBitmap(uint32_t const& bitmapNumber, BitmapFrame const& bitmap, PosPrinterAlignment const& alignment, uint32_t const& width);
[Windows.Foundation.Metadata.Overload("SetBitmapCustomWidthStandardAlign")]
public void SetBitmap(uint bitmapNumber, BitmapFrame bitmap, PosPrinterAlignment alignment, uint width);
function setBitmap(bitmapNumber, bitmap, alignment, width)
Public Sub SetBitmap (bitmapNumber As UInteger, bitmap As BitmapFrame, alignment As PosPrinterAlignment, width As UInteger)

Parameters

bitmapNumber
UInt32

unsigned int

uint32_t

The number that you want to assign to this bitmap. You can set two bitmaps, numbered 1 and 2. Use this number with the PrintSavedBitmap method later to add the print instructions to the print job.

bitmap
BitmapFrame

Information about the bitmap that you want to print.

alignment
PosPrinterAlignment

An enumeration value that specifies a standard horizontal placement on the page for the bitmap, such as left-aligned, centered, or right-aligned.

width
UInt32

unsigned int

uint32_t

The width to use for printing the bitmap, expressed in the unit of measurement indicated by the ClaimedPosPrinter.MapMode property.

Implements

M:Windows.Devices.PointOfService.IReceiptOrSlipJob.SetBitmap(System.UInt32,Windows.Graphics.Imaging.BitmapFrame,Windows.Devices.PointOfService.PosPrinterAlignment,System.UInt32) M:Windows.Devices.PointOfService.IReceiptOrSlipJob.SetBitmap(unsigned int,Windows.Graphics.Imaging.BitmapFrame,Windows.Devices.PointOfService.PosPrinterAlignment,unsigned int) M:Windows.Devices.PointOfService.IReceiptOrSlipJob.SetBitmap(uint32_t,Windows.Graphics.Imaging.BitmapFrame,Windows.Devices.PointOfService.PosPrinterAlignment,uint32_t)
Attributes

Remarks

If the printer for the print job has non-volatile bitmap storage, this method saves the bitmap to the printer hardware, which can cause wear and damage to the flash storage for the printer.

See also

Applies to