UIPrintInteractionController uses data to print. If I want to print the image with the image, then give me some warnings. I want to use the image, not with the images from the image view. I want to know how to get image from image ImageView
UIPrintInteractionController * printController = [UIPrintInteractionController SharedPrintController]; NSDTA * DataboPrinted [NSDTATA DataWith ContentOffFile: ImageView. Image]; If (print controller & amp; amp; [UIPrintInteractionController canPrintData: imageView.image]) {printController.delegate = self; UIPRITInfo * PrintInfo = [UIPRITInfin PrintInfo]; PrintInfo.outputType = UIPrintInfoOutputGeneral; PrintInfo.jobName = [Path PreviousPath Companion]; PrintInfo.duplex = UIPrintInfoDuplexLongEdge; PrintController.printInfo = PrintInfo; PrintController.showsPageRange = Yes; [Print controller set printing ITEM: datatabaprint]; I think you need NSDTIT from the image, then you can do the following:
NSData * imageData = UIImageJPEG report (Image, 0.7); // 0.7 is the quality of JPG or
NSDTa * imageData = UIIMPNGR presentation (image); Depending on whether you want to put your data in PNG format or JPG format.
Comments
Post a Comment