UniPRT SDK v2.0.0.0
 
Loading...
Searching...
No Matches
TsplPicture.h
1//
2// TsplPicture.h
3// UniPRT
4//
5// Created by Realbuber on 2024/7/10.
6//
7
8#ifndef TsplPicture_h
9#define TsplPicture_h
10
11#import <Foundation/Foundation.h>
12#import <UniPRT/IPicture.h>
13#import <UniPRT/IPoint.h>
14#import <UniPRT/IRuler.h>
15#import <UniPRT/PrintPlane.h>
16#import <UniPRT/TsplCmd.h>
17#import <UniPRT/Defaults.h>
18#import <UniPRT/_Picture.h>
19
20NS_ASSUME_NONNULL_BEGIN
21
48@interface TsplPicture : NSObject <IPicture>
49
60@property (nonatomic, strong) id<IPoint> Start;
61
72@property (nonatomic, copy) NSString *ImageName;
73
84@property (nonatomic, strong) id<IRuler> Ruler;
85
108- (instancetype)initWithStart:(id<IPoint>)start imageName:(NSString *)imageName;
109
126- (NSString *)description;
127
128@end
129
130NS_ASSUME_NONNULL_END
131
132#endif /* TsplPicture_h */
Represents a picture (bitmap) placed on the label using TSPL.
Definition TsplPicture.h:48
NSString * ImageName
The name of the image resource.
Definition TsplPicture.h:72
NSString * description()
Converts the picture object to a TSPL command string.
id< IRuler > Ruler
The ruler object used for positioning or scaling.
Definition TsplPicture.h:84
id< IPoint > Start
The starting position of the picture.
Definition TsplPicture.h:60
The picture interface used for placing an image on the label.
Definition IPicture.h:25