iOS SDK - How to rotate the image for printing?

// Expert user has replied.
M Mog pa 2 years 11 months ago
45 1 0

Hi,

I am using iOS SDK for printing from iPad. I have a ZQ620 printer. I am using the below code to print the image:

id graphicsUtil = [self.printer getGraphicsUtil];
NSError *error = nil;
success = [graphicsUtil printImage:[image CGImage] atX:0 atY:0 withWidth:-1 withHeight:-1 andIsInsideFormat:NO error:&error];

The final print is in portrait and goes out of the label. How can I rotate the image to landscape for printing?

Any help would be appreciated.

Please Register or Login to post a reply

1 Replies

S Steven Si

Unfortunately, the Link-OS SDK for iOS doesn't provide API for image rotation. The application would have to rotate the image first, before calling the printImage in the SDK.

CONTACT
Can’t find what you’re looking for?