CN110457098B - Page local image sharing method, device, equipment and storage medium - Google Patents

Page local image sharing method, device, equipment and storage medium Download PDF

Info

Publication number
CN110457098B
CN110457098B CN201910604258.5A CN201910604258A CN110457098B CN 110457098 B CN110457098 B CN 110457098B CN 201910604258 A CN201910604258 A CN 201910604258A CN 110457098 B CN110457098 B CN 110457098B
Authority
CN
China
Prior art keywords
window
image
sharing
page
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910604258.5A
Other languages
Chinese (zh)
Other versions
CN110457098A (en
Inventor
郑昊敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201910604258.5A priority Critical patent/CN110457098B/en
Publication of CN110457098A publication Critical patent/CN110457098A/en
Application granted granted Critical
Publication of CN110457098B publication Critical patent/CN110457098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Abstract

The application relates to the technical field of software operation and maintenance, and provides a page local image sharing method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring image data of an image, and acquiring window size information; creating a window according to the window size information; loading image data into a window to obtain a picture display window, and displaying the picture display window in a region sharing page; and if the picture display window is selected by the selection instruction, sharing the image with the target terminal. Because the image is a picture of a local area of the page, the carried interference information is less, and a user can intuitively recognize the target information in the image.

Description

Page local image sharing method, device, equipment and storage medium
Technical Field
The application relates to the technical field of software operation and maintenance, in particular to a page local image sharing method, device, equipment and storage medium.
Background
The screenshot is a visual image captured by the smart device that can be displayed on a screen or other display device. Typically the screenshots are taken by the operating system or by dedicated screenshot software. The purpose of the screenshot is typically to show others a page icon or a game scene in a particular state.
The existing mobile terminal only supports full screen capture, the captured image carries a large amount of useless information, target information is inconvenient to display to other people, and the captured image occupies a large storage space.
Disclosure of Invention
The method, the device, the equipment and the storage medium for sharing the local page images solve the technical problem that target information is difficult to identify as a large amount of useless information is carried by the page images intercepted by the existing mobile terminal, a plurality of local areas are divided from an initial page, after an area sharing instruction is monitored, images corresponding to the local areas are loaded into windows, picture display windows are obtained, the picture display windows are displayed, when the picture display windows are selected, the images of the local areas are shared, the images are pictures of the local areas of the page, carried interference information is few, and a user can visually identify the target information in the images.
A page local image sharing method is used for sharing an image of a local area in an initial page, wherein a sharing key is arranged in the initial page, and the method comprises the following steps: if the input of the user for the sharing key is monitored, acquiring image data of the image and acquiring preset window attribute information; the window attribute information comprises window position information, window shape information and window size information; creating a window according to the window shape information and the window size information; loading the image data into the window to obtain a picture display window, and displaying the picture display window in an area sharing page according to the window position information; if the picture display window is selected by the selection instruction, sharing the image with a target terminal; the selection instruction is an operation instruction for selecting the picture display window on the region sharing page by the user.
Optionally, the acquiring image data of the image includes: acquiring a storage path of the image; calling the image according to the storage path; the image data is read from the image in an 8-bit encoding pass.
Optionally, before monitoring the input of the user for the sharing key, the method further includes: creating the local area according to material information, and drawing the image according to the material information; storing the image; acquiring regional position information of the local region; the region position information is used for representing the position of the local region in the initial page; loading the local area into the initial page according to the area position information; and displaying the initial page.
Optionally, the material information includes area attribute information and area content information; the region content information refers to the content displayed by the local region; the region attribute information includes region shape information and region size information; the region shape information is used for representing the outline shape of the local region; the area size information is used for representing the size of the space occupied by the local area in the initial page.
Optionally, the drawing the image according to the material information includes: setting a pixel array corresponding to the image by utilizing an open graphic library of an embedded system; and writing the material information into a pixel array to draw the image.
Optionally, after the screen display window is displayed in an area sharing page according to the window position information, the method further includes: if a return instruction is monitored, closing the region sharing page and displaying the initial page; the return instruction is an operation instruction for the user to exit the region sharing page.
Based on the same technical concept, the present application further provides a page local image sharing device, which is used for sharing an image of a local area in an initial page, wherein a sharing key is arranged in the initial page, and the page local image sharing device includes:
and the acquisition module is used for acquiring the image data of the image and acquiring preset window attribute information if the input of the user to the sharing key is monitored. The window attribute information includes window position information, window shape information, and window size information.
The processing module is used for creating a window according to the window shape information and the window size information acquired by the acquisition module; loading the image data acquired by the acquisition module into the window to obtain a picture display window, and displaying the picture display window in a region sharing page according to the window position information acquired by the acquisition module; if the picture display window is selected by the selection instruction, sharing the image with a target terminal; the selection instruction is an operation instruction for selecting the screen display window on the region sharing page by the user.
Optionally, the obtaining module is specifically configured to obtain a storage path of the image; calling the image according to the storage path; the image data is read from the image in an 8-bit encoding pass.
Optionally, the processing module is further configured to create the local area according to material information, and draw the image according to the material information; storing the image; acquiring regional position information of the local region; the region position information is used for representing the position of the local region in the initial page; loading the local area into the initial page according to the area position information; and displaying the initial page.
Optionally, the material information includes region attribute information and region content information; the region content information refers to the content displayed by the local region; the region attribute information includes region shape information and region size information; the region shape information is used for representing the outline shape of the local region; the area size information is used for representing the size of the space occupied by the local area in the initial page.
Optionally, the processing module is specifically configured to set a pixel array corresponding to the image by using an open graphics library of an embedded system; and writing the material information into a pixel array to draw the image.
Optionally, the processing module is further configured to close the area sharing page and display the initial page if a return instruction is monitored; the return instruction is an operation instruction for the user to exit the region sharing page.
Based on the same technical concept, the present application further provides a computer device, which includes an input/output unit, a memory and a processor, where the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps in the page partial image sharing method.
Based on the same technical concept, the present application further provides a storage medium storing computer readable instructions, which when executed by one or more processors, cause the one or more processors to perform the steps of the page partial image sharing method as described above.
The beneficial effect of this application: the method comprises the steps of dividing a plurality of local areas from an initial page, loading images corresponding to the local areas into windows after monitoring an area sharing instruction to obtain picture display windows, displaying the picture display windows, sharing the images of the local areas when the picture display windows are selected, and enabling a user to visually identify target information in the images because the images are pictures of the local areas of the page and carry little interference information.
Drawings
Fig. 1 is a schematic flowchart of a page local image sharing method in an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a page local image sharing device in an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a computer device in an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As used herein, the singular forms "a", "an", "the" and "the" may include the plural forms as well, unless expressly stated otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, procedures, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, procedures, steps, operations, elements, components, and/or groups thereof.
Fig. 1 is a flowchart of a page local image sharing method according to some embodiments of the present disclosure, where the page local image sharing method is executed by a page local image sharing device, and the page local image sharing device may be a terminal device such as a computer or a mobile phone.
As shown in fig. 1, the page local image sharing method is used for sharing an image of a local area in an initial page, where the initial page is provided with a sharing key, and may include the following steps S1 to S4:
s1, if the input of a user for the sharing key is monitored, acquiring image data of the image and acquiring preset window attribute information.
Generally, there is a lot of information in a page, some information is useful to a user, and some information is useless to a user. Information such as navigation bars, keywords, search bars, and text in a page is generally useful to a user, while information in logo tiles, billboard tiles, and the like in a page is generally useless to a user. In the present application, an area generally useful for a user in an initial page is set as the local area in advance, and at least one of the local areas is set. The image is drawn in advance according to the material information of the local area, and is stored in a preset folder in advance.
In some embodiments, the window attribute information includes window position information, window shape information, and window size information.
And the window position information is used for representing the coordinate position [ x, y ] of the window in the area sharing page.
The window shape information is used for characterizing the outline shape of the window, such as characterizing the window as a rectangle.
The window size information is used for representing the size of the space occupied by the window in the region sharing page; for example, for a rectangular window, the window size information may be width [ width ], height [ height ].
In some embodiments, the window attribute information further includes the following information: window background information and window color attributes.
And the window background information is used for representing the background color of the window.
And the window color attribute is used for representing the overall color [ r, g, b, a ] of the window.
In some embodiments, the window attribute information may further include information on transparency (alpha), visibility (visible), and scalability (scale) of the window.
In some embodiments, the acquiring image data of the image includes the following steps S111-S112:
and S111, acquiring a storage path of the image, and calling the image according to the storage path.
The storage path is a path of a folder that stores the image, i.e., a link required when the image is called.
And S112, reading the image data from the image by using an 8-bit coding channel.
The encoding channels are used for reading pixels in an image, generally, images in formats such as PNG, TIFF or JPEG all support an 8-bit encoding channel reading mode, and a plurality of encoding channels can be adopted to read the image data in the image in parallel, so as to improve the rate of reading the image data.
In some embodiments, the acquiring image data of the image comprises: reading the IMAGE data by adopting an IiplImage cvLoadImage (const char film, int iscolor = CV _ LOAD _ IMAGE _ COLOR) function in a High-level Graphical User Interface (High-GUI) library; wherein filename represents the file name of the IMAGE, and CV _ LOAD _ IMAGE _ COLOR is the default value of the parameter iscolor, which represents that the IMAGE data is read by an 8-bit encoding channel. The file name of the image is stored in a designated folder of the program file package, and the cvLoadImage function can access the image only through the file name.
The HighGUI library is an interface design library in an Open Source Computer Vision (OpenCV) library. The OpenCV library incorporates functions that interact with hardware such as the operating system, file system, and camera into the HighGUI library. Controls, such as sliders, can be conveniently created and added to the window using the HighGUI library.
In some embodiments, before the input of the user for the sharing key is monitored, the method further includes the following steps S01 to S04:
and S01, creating the local area according to material information, and drawing the image according to the material information.
In some embodiments, the material information includes zone attribute information and zone content information.
The region content information refers to the content displayed by the local region, such as characters, pictures, buttons and the like.
The region attribute information includes region shape information and region size information.
The region shape information is used to characterize the contour shape of the local region, such as characterizing the local region as a rectangle or a circle.
The area size information is used for representing the size of the space occupied by the local area in the initial page. For example, for the local region of a rectangle, the region size information refers to a width [ width ] and a height [ height ]; for the local area of a circle, the area size information refers to a radius.
In some embodiments, the local area may be a tile displayed in the initial page, or a specific button, information bar, icon, or function item displayed in the tile.
And setting a sharing optional frame on the initial page, and after a user clicks the sharing optional frame, displaying two sharing keys of sharing according to a board block and sharing according to contents on the initial page. If the user selects' sharing according to the plate, the local area takes the plate as a unit, and correspondingly, the material information is the material information corresponding to the plate. If the user selects 'share by pressing the content', the local area takes a key, an information bar or an icon and the like as a unit, and correspondingly, the material information is corresponding to the key, the information bar or the icon and the like.
The image is drawn by a drawing function, the drawing function is a tool for drawing a generalized pattern according to an instruction and aiming at parameter information, the drawing function has different names in different programming languages, for example, in C language, the drawing function is called a draw function, and in java language, the drawing function is called a draw method.
In some embodiments, the drawing the image according to the material information includes the following steps S011-S012:
and S011, setting a pixel array corresponding to the image by utilizing an open graphic library of the embedded system.
The size of the pixel array determines the size of the image generated.
An Open Graphics Library (OpenGL ES) of an Embedded system is a Library of an Android operating system and is a subset of an OpenGL three-dimensional Graphics Application Program Interface (API).
OpenGL ES is a cross-platform, fully functional two-dimensional (2D) and three-dimensional (3D) graphics Application Programming Interface (API), is customized from OpenGL, removes many non-absolutely necessary characteristics such as complex primitives like glBegin/glEnd, quadrilateral (GL _ QUADS), polygon (GL _ polygon), etc., and is widely applied to graphics rendering and special effects processing. When OpenGL ES drawing is utilized, the material information is set as parameter information in OpenGL ES drawing so as to draw the image.
And S012, writing the material information into a pixel array to draw the image.
The image drawn by the pixel array is called a Bitmap (Bitmap), which is also called a raster map or a Bitmap. The pixels of the bitmap are all assigned a particular position and color value. One encoding method of bitmap colors is: one color is represented by the optical intensity of the three primary colors red, green and blue. This is the most common bitmap encoding method and can be used directly for screen display. The bitmap can be divided into 1, 4, 8, 16, 24, and 32 bit images, etc., according to bit depth. The larger the number of information bits used per pixel, the more colors are available, the more realistic the color representation, and the larger the corresponding amount of data. For example, a pixel bitmap with a bit depth of 1 has only two possible values (black and white), and is therefore also referred to as a binary bitmap. There are 2 (i.e., 256) possible values for an image with a bit depth of 8. A gray mode image with a bit depth of 8 has 256 possible gray values.
And S02, storing the image.
And after the image is drawn, storing the image for calling. The image is used as the content of the screen display window on the one hand and as a "screenshot" to be shared in the local area on the other hand.
And S03, acquiring the regional position information of the local region.
The region position information is used for representing the position of the local region in the initial page.
And S04, loading the local area into the initial page according to the area position information, and displaying the initial page.
In this embodiment, the image is drawn by using the material information of the local area, the image is stored in advance as a to-be-shared screenshot of the local area, and when a user shares a picture of the local area with a target terminal, the user only needs to directly call the image according to an instruction and forward the image, so that the image is forwarded simply and conveniently.
And S2, creating a window according to the window shape information and the window size information.
In some embodiments, the window has a regular shape, and may be rectangular or circular. Generally, rectangular windows are convenient to arrange on a page, and display is more intuitive.
In some embodiments, the window size information includes a width and a height of the window. Step S2 specifically includes some steps S21-S22:
s21, defining the window by adopting a cvNameWindow (const char name, int flags = 0) function in the HighGUI library; where name is the handle to the window.
S22, setting the size of the window by adopting a cvSizeWindow (const char name, int width, int height) function in the HighGUI library to obtain the rectangular window; wherein width represents the width and height represents the height.
The cvSizeWindow function defaults to creating a window that is rectangular, and thus the window shape information does not need to be set.
And S3, loading the image data into the window to obtain a picture display window, and displaying the picture display window in an area sharing page according to the window position information.
The image serves as the content (content) of the screen display window. And the picture display window is a miniature window of the local area, and the image is loaded into the window, so that a user can determine the local area corresponding to the picture display window according to the miniature of the image displayed in the picture display window.
Before loading the image into the picture display window, firstly zooming the image to a scale corresponding to the picture display window according to the window size information, and then loading the zoomed image into the picture display window. In other embodiments, the target intercepting position may be set in advance, and then the region corresponding to the target intercepting position is intercepted in the image. The size of the intercepted area is determined by the window size information, and the size of the intercepted local area can be the same as or smaller than the size of the picture display window.
The arrangement of the picture display window on the region sharing page is determined by the window position information. The region sharing page can display a plurality of different picture display windows, and the arrangement modes of the picture display windows can be various, for example, the region sharing page can sequentially display a plurality of picture display windows in a list form; the region sharing page may also display a plurality of picture display windows in the form of a "tile" and in the form of an array. Under the condition that the number of the picture display windows is large, a user can slide the picture display windows to display by sliding up and down or left and right. In this embodiment, the region sharing page is built on a div (divsion, namely, DIVision) layer, the screen display window is a screen display window on the div layer, and the screen display window may be generated through tips and other controls. No matter what shape the screen display windows take, what size the screen display windows and the area sharing page are, it is sufficient that the screen display windows can be distributed on the area sharing page without overlapping.
In some embodiments, step S3 specifically includes the following steps S31-S33:
s31, caching the image data by adopting a cvSaveImage (const char filename, const cvArr image) function in the HighGUI library to obtain cached data; wherein the image is a handle to the cached data.
And S32, loading the cache data into the window by adopting a cvShow (const char name, const cvArr image) function in the HighGUI library to obtain an image display window, and displaying the image display window on the region sharing page.
S33, moving the picture display window to a position corresponding to the window position information in the region sharing page by adopting a cvMoveWindow (const char name, int x, int y) function in the HighGUI library; wherein x and y represent the window position information, x represents an abscissa of the screen display window, and y represents an ordinate of the screen display window.
In this embodiment, the screen display window is displayed on an area sharing page, and when the local terminal displays the area sharing page, the user may need to perform an exit operation to return to the initial page, and for this reason, after the screen display window is displayed in the area sharing page according to the window position information, the method further includes:
if a return instruction is monitored, closing the region sharing page and displaying the initial page;
the return instruction is an operation instruction for the user to exit the region sharing page.
And S4, if the picture display window is selected by the selection instruction, sharing the image with the target terminal.
The selection instruction is an operation instruction for selecting the picture display window on the region sharing page by the user.
In some embodiments, a check box corresponding to the screen display window is created in the region sharing page, and the user checks the check box by touching or a cursor, thereby checking the screen display window. The area sharing page can be provided with a plurality of picture display windows, and after the user selects the required picture display window, the user clicks a 'confirmation' key to share the image corresponding to each selected picture display window. Alternatively, the check box is provided on the left side of the screen display window.
The method can be applied to insurance transaction apps. Specifically, the terminal of the customer and the terminal of the customer service install an insurance transaction app, respectively. The insurance transaction app is provided with an insurance product page, and a customer can browse the insurance products sold by the insurance mechanism through the insurance product page; in addition, the insurance transaction app is provided with an exchange window, and a client can exchange with a customer service staff of the insurance institution on line through the exchange window to consult the customer service staff about the detailed content of the insurance product; the insurance product page is provided with the sharing key, when a client wants to know insurance product information to customer service staff through an image, the client can click the sharing key, the insurance transaction app divides the insurance product page into a plurality of local areas according to a preset division rule and respectively generates an image and a picture display window corresponding to each local area, the insurance transaction app displays each picture display window on the area sharing page according to a preset arrangement sequence, the client clicks a target picture display window on the area sharing page, the insurance transaction app sends the image of the local area corresponding to the target picture display window to an exchange window of a customer service end, the image is a local area in the insurance product page, the image information is more specific, and the client can conveniently consult specific details of the insurance product. Likewise, customer service personnel can send images to the customer in the manner described above, which can more effectively introduce insurance products to the customer.
In the above embodiment, a plurality of local regions are divided from an initial page, after a region sharing instruction is monitored, an image corresponding to the local region is loaded into a window to obtain a picture display window, each picture display window is displayed, and when the picture display window is selected, the image of the local region is shared, the image is a picture of the local region of the page, and interference information carried by the image is less, so that a user can visually identify target information in the image.
Based on the same technical concept, the application also provides a page local image sharing device which can be used for sharing the image of the local area in the initial page, wherein the initial page is provided with a sharing key. The apparatus in the embodiment of the present application can implement the steps corresponding to the method for sharing the local image of the page executed in the embodiment corresponding to fig. 1. The functions realized by the device can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the above functions, which may be software and/or hardware. As shown in fig. 2, the apparatus includes an acquisition module 1 and a processing module 2. The functional implementation of the processing module 2 and the obtaining module 2 may refer to the operations executed in the embodiment corresponding to fig. 1, which are not described herein again. The processing module 2 may be configured to control an information obtaining operation of the obtaining module 1.
The obtaining module 1 is configured to obtain image data of the image and obtain preset window attribute information if an input of the user for the sharing key is monitored. The window attribute information includes window position information, window shape information, and window size information.
The processing module 2 is configured to create a window according to the window shape information and the window size information acquired by the acquiring module 1; loading the image data acquired by the acquisition module 1 into the window to obtain a picture display window, and displaying the picture display window in an area sharing page according to the window position information acquired by the acquisition module 1; if the picture display window is selected by the selection instruction, sharing the image with a target terminal; the selection instruction is an operation instruction for selecting the picture display window on the region sharing page by the user.
In some embodiments, the obtaining module 1 is specifically configured to obtain a storage path of the image; calling the image according to the storage path; the image data is read from the image in an 8-bit encoding pass.
In some embodiments, the processing module 2 is further configured to create the local area according to material information, and draw the image according to the material information; storing the image; acquiring regional position information of the local region; the region position information is used for representing the position of the local region in the initial page; loading the local area into the initial page according to the area position information; and displaying the initial page.
In some embodiments, the material information includes region attribute information and region content information; the region content information refers to the content displayed by the local region; the region attribute information includes region shape information and region size information; the region shape information is used for representing the outline shape of the local region; the area size information is used for representing the size of the space occupied by the local area in the initial page.
In some embodiments, the processing module 2 is specifically configured to set a pixel array corresponding to the image by using an open graphics library of an embedded system; and writing the material information into a pixel array to draw the image.
In some embodiments, the processing module 2 is further configured to close the area sharing page and display the initial page if a return instruction is monitored; the return instruction is an operation instruction for the user to exit the region sharing page.
In the above embodiment, a plurality of local regions are divided from an initial page, after a region sharing instruction is monitored, an image corresponding to the local region is loaded into a window to obtain a picture display window, each picture display window is displayed, and when the picture display window is selected, the image of the local region is shared, the image is a picture of the local region of the page, and interference information carried by the image is less, so that a user can visually identify target information in the image.
Based on the same technical concept, the present application further provides a computer device, as shown in fig. 3, the computer device includes an input/output unit 31, a processor 32 and a memory 33, where the memory 33 stores computer readable instructions, and when the computer readable instructions are executed by the processor 32, the processor executes the steps of the page partial image sharing method in the above embodiments.
The entity device corresponding to the acquisition module 1 shown in fig. 2 is the input/output unit 31 shown in fig. 3, and the input/output unit 31 can implement part or all of the functions of the acquisition module 1, or implement the same or similar functions as the acquisition module 1.
The entity device corresponding to the processing module 2 shown in fig. 2 is the processor 32 shown in fig. 3, and the processor 32 can implement part or all of the functions of the processing module 2, or implement the same or similar functions as the processing module 2.
Based on the same technical concept, the present application further provides a storage medium storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the steps of the page partial image sharing method in the foregoing embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM), and includes several instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above embodiments, which are only illustrative and not restrictive, and those skilled in the art can make many forms without departing from the spirit and scope of the present application, and all changes that come within the meaning and range of equivalency of the claims are intended to be embraced therein.

Claims (10)

1. A page local image sharing method is used for sharing an image of a local area in an initial page, wherein a sharing key is arranged in the initial page, and the method is characterized by comprising the following steps:
if the input of the user for the sharing key is monitored, acquiring image data of the image and acquiring preset window attribute information; the window attribute information comprises window position information, window shape information and window size information;
creating a window according to the window shape information and the window size information;
loading the image data into the window to obtain a picture display window, and displaying the picture display window in an area sharing page according to the window position information; the picture display window is a miniature window of the local area;
if the picture display window is selected by the selection instruction, sharing the image with a target terminal; the selection instruction is an operation instruction for selecting the picture display window on the region sharing page by a user;
loading the image data into the window to obtain a picture display window, and displaying the picture display window in an area sharing page according to the window position information; the method comprises the following steps:
caching the image data by adopting a cvSaveImage function in a high-level graphical user interface library to obtain cached data;
loading the cache data into the window by adopting a cvShow function in a high-level graphical user interface library to obtain a picture display window, and displaying the picture display window on the region sharing page;
and moving the picture display window to a position corresponding to the window position information in the region sharing page by adopting a cvMoveWindow function in an advanced graphical user interface library.
2. The method for sharing local images on a page according to claim 1,
the acquiring image data of the image comprises:
acquiring a storage path of the image;
calling the image according to the storage path;
the image data is read from the image in an 8-bit encoding pass.
3. The method for sharing local images on page according to claim 1 or 2,
if the input of the user for the sharing key is monitored, the method further comprises the following steps:
creating the local area according to material information, and drawing the image according to the material information;
storing the image;
acquiring regional position information of the local region; the region position information is used for representing the position of the local region in the initial page;
loading the local area into the initial page according to the area position information;
and displaying the initial page.
4. The method for sharing local images on page according to claim 3,
the material information comprises region attribute information and region content information;
the region content information refers to the content displayed by the local region;
the region attribute information includes region shape information and region size information;
the region shape information is used for representing the outline shape of the local region;
the area size information is used for representing the size of the space occupied by the local area in the initial page.
5. The method for sharing local images on a page according to claim 3,
the drawing the image according to the material information comprises the following steps:
setting a pixel array corresponding to the image by utilizing an open graphic library of an embedded system;
and writing the material information into a pixel array to draw the image.
6. The method for sharing local images on a page according to claim 3,
after the picture display window is displayed in the region sharing page according to the window position information, the method further includes:
if a return instruction is monitored, closing the region sharing page and displaying the initial page;
the return instruction is an operation instruction for the user to exit the region sharing page.
7. The utility model provides a page local image sharing device for share the image of the local region in the initial page, be provided with the sharing button in the initial page, its characterized in that includes:
the acquisition module is used for acquiring image data of the image and acquiring preset window attribute information if the input of the user for the sharing key is monitored; the window attribute information comprises window position information, window shape information and window size information;
the processing module is used for creating a window according to the window shape information and the window size information acquired by the acquisition module; loading the image data acquired by the acquisition module into the window to obtain a picture display window, and displaying the picture display window in a region sharing page according to the window position information acquired by the acquisition module; the picture display window is a miniature window of the local area; if the picture display window is selected by the selection instruction, sharing the image with a target terminal; the selection instruction is an operation instruction for selecting the picture display window on the region sharing page by a user;
the processing module is also used for caching the image data by adopting a cvSaveImage function in a high-level graphical user interface library to obtain cached data; loading the cache data into the window by adopting a cvShow function in a high-level graphical user interface library to obtain a picture display window, and displaying the picture display window on the region sharing page; and moving the picture display window to a position corresponding to the window position information in the region sharing page by adopting a cvMoveWindow function in an advanced graphic user interface library.
8. The page partial image sharing apparatus according to claim 7,
the acquisition module is specifically used for acquiring a storage path of the image; calling the image according to the storage path; the image data is read from the image in an 8-bit encoding pass.
9. A computer device comprising an input-output unit, a memory and a processor, the memory having stored therein computer-readable instructions which, when executed by the processor, cause the processor to perform the steps in the page partial image sharing method according to any one of claims 1 to 6.
10. A storage medium storing computer readable instructions, which when executed by one or more processors, cause the one or more processors to perform the steps of the page partial image sharing method according to any one of claims 1 to 6.
CN201910604258.5A 2019-07-05 2019-07-05 Page local image sharing method, device, equipment and storage medium Active CN110457098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910604258.5A CN110457098B (en) 2019-07-05 2019-07-05 Page local image sharing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910604258.5A CN110457098B (en) 2019-07-05 2019-07-05 Page local image sharing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110457098A CN110457098A (en) 2019-11-15
CN110457098B true CN110457098B (en) 2023-02-10

Family

ID=68482203

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910604258.5A Active CN110457098B (en) 2019-07-05 2019-07-05 Page local image sharing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110457098B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111831351A (en) * 2020-06-24 2020-10-27 平安普惠企业管理有限公司 Page loading method and device based on image analysis and computer equipment
WO2023035241A1 (en) * 2021-09-10 2023-03-16 北京小米移动软件有限公司 Image processing method and apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103258024A (en) * 2013-05-07 2013-08-21 百度在线网络技术(北京)有限公司 Method, system and device for sharing local contents of pictures in webpage
CN105141878A (en) * 2014-05-28 2015-12-09 腾讯科技(深圳)有限公司 Content sharing method in video interaction and instant messaging client

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10761673B2 (en) * 2013-03-12 2020-09-01 Oracle International Corporation Managing display of detachable windows in a GUI computing environment
CN104484434A (en) * 2014-12-19 2015-04-01 深圳先进技术研究院 Positioning image display method and system based on street view attribute information

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103258024A (en) * 2013-05-07 2013-08-21 百度在线网络技术(北京)有限公司 Method, system and device for sharing local contents of pictures in webpage
CN105141878A (en) * 2014-05-28 2015-12-09 腾讯科技(深圳)有限公司 Content sharing method in video interaction and instant messaging client

Also Published As

Publication number Publication date
CN110457098A (en) 2019-11-15

Similar Documents

Publication Publication Date Title
CN105843494B (en) Method, device and terminal for realizing area screen capture
US8280193B2 (en) Method and apparatus for magnifying computer screen display
CN105955687B (en) Image processing method, device and system
US10410398B2 (en) Systems and methods for reducing memory bandwidth using low quality tiles
US10067646B2 (en) Color selector for desktop publishing
JP2005501310A (en) Scaling method and / or method and system for displaying an information medium in a specific direction
CN110457098B (en) Page local image sharing method, device, equipment and storage medium
US9524573B2 (en) Systems, methods, and computer-readable media for manipulating and mapping tiles of graphical object data
CN110599564A (en) Image display method and device, computer equipment and storage medium
US9280847B2 (en) Image composition apparatus, image retrieval method, and storage medium storing program
CN111596848A (en) Interface color taking method, device, equipment and storage medium
CN114003160B (en) Data visual display method, device, computer equipment and storage medium
GB2524047A (en) Improvements in and relating to rendering of graphics on a display device
KR100860673B1 (en) Apparatus and method for generating image to generate 3d image
US7463271B2 (en) Optimized access for drawing operations
CN111223155A (en) Image data processing method, image data processing device, computer equipment and storage medium
CN112686939B (en) Depth image rendering method, device, equipment and computer readable storage medium
CN110737417B (en) Demonstration equipment and display control method and device of marking line of demonstration equipment
WO2023050744A1 (en) Map editing method, system, apparatus, computer device, program product, and storage medium
JP3715336B2 (en) System operation method
CN108932054B (en) Display device, display method, and non-transitory recording medium
CN102074004A (en) Method and device for determining type of barrier of spatial entity
CN111143018A (en) Front-end image rendering method and device and electronic equipment
KR100586602B1 (en) Method for overlaing raster map
KR101666131B1 (en) Vector Font Rendering with considering sub-pixel pattern

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant