Creating a UIImage of ITCSmartPage

Is it possible to create a UIImage from a ITCSmartPage?

UIImage *writtenImage = [UIImage imageWithData:[_currentPageInterpreter.page data]];

UIGraphicsBeginImageContextWithOptions(writtenImage.size, NO, 0.0);
[writtenImage drawInRect:CGRectMake(0, 0, writtenImage.size.width, writtenImage.size.height)];
UIImage *SaveImage = UIGraphicsGetImageFromCurrentImageContext();

This doesn't work as writtenImage is returned as nil.

I appreciate one can write an ITF image file, but I wanted to create a PNG representation of the UIImage and store its serialisation in a sqlite database, without writing to a folder.


1 Comment

This option is not available in the ITC 1.3 api but it should possible to achieve this on your own.
This link may help:
Best regards

Login or Signup to post a comment