UniPRT SDK v2.0.0.0
 
Loading...
Searching...
No Matches
TsplPicture Class Reference

A class representing a picture object in TSPL. More...

#include <TsplPicture.h>

Inheritance diagram for TsplPicture:
<IPicture>

Instance Methods

(instancetype) - initWithStart:imageName:
 Initializes a new instance of TsplPicture with the specified position and image name.
 
(NSString *) - description
 Converts the picture object to a TSPL command string.
 

Properties

id< IPointStart
 The starting position of the picture.
 
NSString * ImageName
 The image name associated with the picture.
 
id< IRulerIuler
 The ruler object used for positioning or scaling.
 
- Properties inherited from <IPicture>
id< IRulerRuler
 
id< IPointStart
 
NSString * ImageName
 

Detailed Description

A class representing a picture object in TSPL.

This class implements the IPicture interface and provides functionality for defining picture elements in TSPL label formats.

Method Documentation

◆ description

- (NSString *) description

Converts the picture object to a TSPL command string.

This method generates the TSPL command string representation of the TsplPicture instance, which can be sent to the printer.

Returns
A string containing the TSPL command.

Reimplemented from <IPicture>.

◆ initWithStart:imageName:

- (instancetype) initWithStart: (id< IPoint >) start
imageName: (NSString *) imageName 

Initializes a new instance of TsplPicture with the specified position and image name.

Parameters
startThe starting position of the picture.
imageNameThe name of the image resource.
Returns
A new instance of TsplPicture.

Property Documentation

◆ ImageName

- (NSString*) ImageName
readwritenonatomiccopy

The image name associated with the picture.

◆ Iuler

- (id<IRuler>) Iuler
readwritenonatomicstrong

The ruler object used for positioning or scaling.

◆ Start

- (id<IPoint>) Start
readwritenonatomicstrong

The starting position of the picture.


The documentation for this class was generated from the following file: