Print image using CPCL command

// Expert user has replied.
S Srikanth Bonthapally 1 year 8 months ago
229 1 0

We are building an iOS Native App which needs to use CPCL commands for printing. 

As per the CPCL documentation, we need to use below command to print PCX file which is already loaded to the device. But we could not find any command upload PCX image to device.

! 0 200 200 309 1
PCX 200 30 !<111.PCX
FORM
PRINT


Also, what is the best option to print an image(PNG) which captured using an iOS App dynamically.  

We see there is an another option to print image using command "EG", which prints ascii images.

Is there API to convert PNG to EG format which can be used iOS native app.

 

 

Please Register or Login to post a reply

1 Replies

S Steven Si

You can use the SDK for iOS in the Link-OS Multiplatform SDK. In the SDK, there is a GraphicUtil class to help print PNG with the printImage method. Please note, you need to get the printer instance with CPCL, so that the PNG will be printed on a CPCL printer.

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