Hybrid App Image Printing via Script-Native Layer Mediation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Hybrid applications face constraints in rendering and printing image data due to limitations in using image data obtained from a script layer, particularly in converting data for printing purposes, which hinders the execution of image processing tasks.
Innovation Solution
An information processing apparatus with a layered structure comprising a script layer and a native layer, where the script layer generates print scripts and the native layer renders print image data, allowing for image data conversion and printing resolution adjustment based on output image size.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If image data is obtained in the script layer using Web standard language, then the application can be developed cross-platform, but the image data cannot be converted for printing purposes
Solution Approach 1:
The patent introduces a native layer as an intermediary between the script layer and the printing function. The script layer obtains image data using Web standard language, then passes it to the native layer which converts the data into a printable format. This mediator resolves the contradiction by enabling cross-platform development while removing conversion constraints through the native layer's capabilities.
2Device complexity
If image data is obtained from the script layer, then the application structure remains simple, but image processing execution fails
Solution Approach 1:
The patent segments the application into two distinct layers: the script layer for obtaining image data using Web standard language, and the native layer for processing and converting the data. This segmentation maintains the simplicity of the script layer while delegating the complex image processing execution to the native layer, thus resolving the contradiction between structural simplicity and execution reliability.
3Adaptability or versatility
If the application uses hybrid structure with script layer and native layer, then both native application advantages and Web application advantages are utilized, but rendering and printing constraints arise
Solution Approach 1:
The native layer serves as an intermediary that bridges the script layer and the rendering/printing functions. It receives image data from the script layer in Web standard format, converts it to the appropriate format for rendering and printing, and passes it to the rendering unit. This intermediary approach allows the hybrid structure to maintain both Web and native application advantages while eliminating rendering and printing constraints.
Data Source
AI summary
When performing image processing on a designated image by the function of the application, image data of the designated image is obtained in a second layer constituted by an instruction set executable by a processor. In a first layer constituted by a script instruction set, the print script of print content including the image data which has been obtained and converted into a data format interpretable by the first layer in the second layer is generated. The print script is rendered into print image data corresponding to a print resolution by interpreting the generated print script.


