CN103853420B - The information displaying method and device for displaying information of custom browser window shape - Google Patents

The information displaying method and device for displaying information of custom browser window shape Download PDF

Info

Publication number
CN103853420B
CN103853420B CN201210519650.8A CN201210519650A CN103853420B CN 103853420 B CN103853420 B CN 103853420B CN 201210519650 A CN201210519650 A CN 201210519650A CN 103853420 B CN103853420 B CN 103853420B
Authority
CN
China
Prior art keywords
browser window
information
shape
image
self
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
CN201210519650.8A
Other languages
Chinese (zh)
Other versions
CN103853420A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210519650.8A priority Critical patent/CN103853420B/en
Publication of CN103853420A publication Critical patent/CN103853420A/en
Application granted granted Critical
Publication of CN103853420B publication Critical patent/CN103853420B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention relates to a kind of information displaying method and device for displaying information of custom browser window shape.The information displaying method of the custom browser window shape includes step:Create the browser application process for rendering image with self-defined shape and create the browser window with self-defined shape;The event occurred in browser window is detected, and sends an event to the browser application process and is handled;And detection renders the Pixel Information of image, and the Pixel Information for rendering image is copied to be shown in browser window.The invention further relates to a kind of device for displaying information of custom browser window shape.The information displaying method and device for displaying information of the custom browser window shape of the present invention create browser application process on backstage, create browser window simultaneously on foreground, realize the self-definition design of browser window shape.

Description

The information displaying method and device for displaying information of custom browser window shape
Technical field
The present invention relates to Internet technical field, more particularly to a kind of information exhibition that can customize browser window shape Show method and device for displaying information.
Background technology
The browser window of existing displaying application program is substantially prim rectangle, even if by browsing Background transparent picture is set in device to realize the layered window of irregular shape, but this is rectangular because it will rely on browser The window of shape, therefore it is still in front of the user a regular window to represent.
In order to bring stronger visual impact and interface experience to user, some companies constantly have attempting exploitation The device for displaying information of irregular browser window.Nearest Microsoft externally discloses a kind of entitled LAYERED WINDOW(Layering Window)Window application, you can custom browser window shape, but because LAYERED WINDOW render mode with biography The mode that renders for the device for displaying information that the Microsoft of system carries has bigger difference, while LAYERED WINDOW may not apply to son Window, therefore more difficult direct use LAYERED WINDOW realize the device for displaying information of custom browser window shape.
Therefore, it is necessary to a kind of information displaying method and device for displaying information that can customize browser window shape is provided, To solve the problems of prior art.
The content of the invention
Browser application process is created on backstage it is an object of the invention to provide one kind, browser is created simultaneously on foreground The information displaying method and device for displaying information of the custom browser window shape of window, realize browser window shape from Definition design;Custom browser window shape can not be realized to solve existing information displaying method and device for displaying information Technical problem.
To solve the above problems, the technical scheme that the present invention is provided is as follows:
The present invention relates to a kind of information displaying method of custom browser window shape, it includes step:
Create and render the browser application process of image and browsing with self-defined shape with self-defined shape Device window;
Detect the event occurred in the browser window, and the event be sent into the browser application process Row processing;And
The Pixel Information of image is rendered described in detection, and the Pixel Information for rendering image is copied to browsed described It is shown in device window.
The invention further relates to a kind of device for displaying information of custom browser window shape, it includes:
Creation module, has for creating the browser application process for rendering image with self-defined shape and creating The browser window of self-defined shape;
Event checking module, institute is sent to for detecting the event occurred in the browser window, and by the event Browser application process is stated to be handled;And
Pixel detection module, believes for detecting the Pixel Information for rendering image, and by the pixel for rendering image Breath is copied to be shown in the browser window.
Compared to prior art, the information displaying method and information displaying dress of custom browser window shape of the invention Put and create browser application process on backstage, browser window is created simultaneously on foreground, realize browser window shape oneself Definition design and displaying.
For the above of the present invention can be become apparent, preferred embodiment cited below particularly, and coordinate institute's accompanying drawings, make Describe in detail as follows:
Brief description of the drawings
Fig. 1 is the flow of the preferred embodiment of the information displaying method of custom browser window shape of the present invention Figure;
Fig. 2 is the structure of the preferred embodiment of the device for displaying information of custom browser window shape of the present invention Schematic diagram;
Fig. 3 is the information displaying method and the specific reality of device for displaying information of the custom browser window shape of the present invention Apply the schematic diagram of example;
Embodiment
Fig. 1 is refer to, Fig. 1 is the preferred embodiment of the methods of exhibiting of custom browser window shape of the present invention Flow chart.The methods of exhibiting of the custom browser window shape of this preferred embodiment includes:
Step 101, the self-defined shape for rendering image and the self-defined shape of browser window are pre-set, and is rendered The self-defined shape of image is identical with the self-defined shape of browser window;
Step 102, establishment has the browser application process for rendering image of self-defined shape and with self-defined shape The browser window of shape;
Step 103, the event occurred in detection browser window, and send an event at browser application process Reason;
Step 104, detection renders the Pixel Information of image, and the Pixel Information for rendering image is copied in browser window It is shown in mouthful;
The information displaying method of the custom browser window shape of this preferred embodiment ends at step 104.
The following detailed description of each step of the information displaying method of the custom browser window shape of this preferred embodiment Detailed process.
In a step 101, the self-defined shape that image is rendered in browser application process is pre-set according to the requirement of user The self-defined shape of shape and browser window, and render the self-defined shape of image and the self-defined shape phase of browser window Together.This step optional step, has such as set the self-defined shape for rendering image and the self-defined shape of browser window, Directly using the browser window with self-defined shape and image can be rendered in a step 102.
Then come step 102.
In a step 102, the browser for rendering image with self-defined shape is created on backstage using browser kernel Application process, the browser window with self-defined shape is created using layered window on foreground.Here the window of layered window Using the displaying for the self-defined shape that ensure that foreground browser window, and the browser application that the browser kernel on backstage is created Process can well be rendered to image, compatible good with browser window, it is ensured that image is being just in browser window Often display.
Then come step 103.
In step 103, the message loop framework of layered window is passed through(The message loop framework can be provided by Microsoft)Inspection All events occurred in the browser window for surveying foreground(Such as mouse-click, mouse are slided and window size changes row For), and the browser application process that these events are sent into backstage by way of message handled.
Then come step 104.
At step 104, after browser application process is handled the event in step 103, phase can be generated on backstage That answers renders image;Then each Pixel Information for rendering image is detected(Including pixel color information and picture element position information Deng), and each Pixel Information for rendering image is copied in browser window be shown.
Further, buffering area can be set on backstage here.Detection is rendered after the Pixel Information of image, can will render image Pixel Information be copied to successively in the buffering area pre-set, when the Pixel Information in buffering area quantity be more than setting value When, the Pixel Information in buffering area is copied in browser window and is shown.Foreground browser window can so be reduced Refreshing frequency, lifted browser window operating efficiency.Here the value of setting value can be selected according to the requirement of user Take.
Further, equally buffering area can be set on backstage.Detection is rendered after the Pixel Information of image, can will render image All pixels information is copied in the buffering area pre-set successively, and the Pixel Information in buffering area then is copied into browser It is shown in window.The refreshing frequency of foreground browser window so can be farthest reduced, farthest lifting The operating efficiency of browser window, it is not necessary to increase the refreshing of browser window frequently to render the Pixel Information refreshing of image Rate.
The information displaying method of the custom browser window shape of this preferred embodiment creates browser application on backstage Process, creates browser window simultaneously on foreground, simply realizes the self-definition design of browser window shape.While backstage The setting of buffering area, further improves the operating efficiency of browser.
The invention further relates to a kind of device for displaying information of custom browser window shape.As shown in Fig. 2 Fig. 2 is this The structural representation of the preferred embodiment of the device for displaying information of the described custom browser window shape of invention.This is preferred real Apply example custom browser window shape device for displaying information include self-defined shape setup module 21, creation module 22, Event checking module 23 and pixel detection module 24.
Self-defined shape setup module 21 is used to pre-set the self-defined shape for rendering image and browser window Self-defined shape, and it is identical with the self-defined shape of browser window to render the self-defined shape of image;Creation module 22 is used for Create the browser application process for rendering image with self-defined shape and create the browser window with self-defined shape Mouthful;Event checking module 23 is used to detect the event occurred in browser window, and sends an event to browser application process Handled;Pixel detection module 24 is used to detecting the Pixel Information for rendering image, and by the pixel for rendering image Information copy is extremely shown in the browser window.
The exhibiting device of the custom browser window shape of the present invention is in use, shape setup module 21 self-defined first Pre-set according to the requirement of user the self-defined shape that image is rendered in browser application process and browser window from Shape is defined, and it is identical with the self-defined shape of browser window to render the self-defined shape of image.Subsequent creation module 22 makes The browser application process for rendering image with self-defined shape is created on backstage with browser kernel, is existed using layered window Foreground creates the browser window with self-defined shape.Then the message loop frame that event checking module 23 passes through layered window All events occurred in frame detection foreground browser window, and these events are sent to the clear of backstage by way of message Device application process of looking at is handled.Last pixel detection module 24 can detect each Pixel Information for rendering image, and will render figure Each Pixel Information of picture, which is copied in browser window, to be shown.
Further, pixel detection module 24 can set buffering area on backstage.Detection is rendered after the Pixel Information of image, can be by The Pixel Information for rendering image is copied in the buffering area pre-set successively, when the quantity of the Pixel Information in buffering area is more than During setting value, the Pixel Information in buffering area is copied in browser window and is shown.
Further, pixel detection module 24 can set buffering area on backstage.Detection is rendered after the Pixel Information of image, can be by The all pixels information for rendering image is copied in the buffering area pre-set successively, then copies the Pixel Information in buffering area Shellfish is shown into browser window.
The concrete operating principle of the device for displaying information of the custom browser window shape of this preferred embodiment with it is above-mentioned Custom browser window shape information displaying method preferred embodiment in description it is same or similar, specifically refer to Description in the preferred embodiment of the information displaying method of above-mentioned custom browser window shape.
Fig. 3 is refer to, Fig. 3 fills for information displaying method and the information displaying of the custom browser window shape of the present invention The schematic diagram for the specific embodiment put.On the left of Fig. 3 the browser window that layered window is created on foreground, figure are used for creation module 3 right sides use the browser application process that browser kernel is created on backstage for creation module.Due to the browser window on foreground The window application of layered window is employed, the housing of the browser window is sightless(It is represented by dotted lines in figure), that is, realize The window shape of browser window is self-defined(The self-defined shape overlapped in Fig. 3 for three circles).The device for displaying information During work, the event that occurs on event checking module detection browser window, and be sent to the browser application process on backstage and enter Row processing;After browser application process is handled the event of reception, image can be rendered accordingly in backstage generation;Then as Plain detection module detects that this renders each Pixel Information in image, and will render by back buffer area each Pixel Information of image It is copied in browser window and is shown, completes whole displaying process.
The information displaying method and device for displaying information of the custom browser window shape of the present invention create clear on backstage Look at device application process, create browser window simultaneously on foreground, realize the self-definition design of browser window shape;Solve Existing methods of exhibiting and exhibiting device can not realize the technical problem of custom browser window shape.While back buffer area Setting, further improve the operating efficiency of browser.
In summary, although the present invention it is disclosed above with preferred embodiment, but above preferred embodiment and be not used to limit The system present invention, one of ordinary skill in the art without departing from the spirit and scope of the present invention, can make various changes and profit Adorn, therefore protection scope of the present invention is defined by the scope that claim is defined.

Claims (8)

1. a kind of information displaying method of custom browser window shape, it is characterised in that including step:
Create the browser application process for rendering image with self-defined shape and create to have using layered window and make by oneself The browser window of adopted shape;
The event occurred in the browser window is detected, and the event is sent at the browser application process Reason;And
The Pixel Information of image is rendered described in detection, and the Pixel Information for rendering image is copied in the browser window It is shown in mouthful.
2. the information displaying method of custom browser window shape according to claim 1, it is characterised in that it is described from Defining the information displaying method of browser window shape also includes step:
Pre-set it is described render the self-defined shape of image and the self-defined shape of the browser window, and described render The self-defined shape of image is identical with the self-defined shape of the browser window.
3. the information displaying method of custom browser window shape according to claim 1, it is characterised in that the inspection The Pixel Information of image is rendered described in surveying, and the Pixel Information for rendering image is copied to enter in the browser window The step of row displaying, includes:
The Pixel Information of image is rendered described in detection, and the Pixel Information for rendering image is copied to what is pre-set successively Buffering area;
When the quantity of the Pixel Information in the buffering area is more than setting value, the Pixel Information in the buffering area is copied to It is shown in the browser window.
4. the information displaying method of custom browser window shape according to claim 1, it is characterised in that the inspection The Pixel Information of image is rendered described in surveying, and the Pixel Information for rendering image is copied to enter in the browser window The step of row displaying, includes:
The all pixels information of image is rendered described in detection, and all pixels information for rendering image is copied to successively pre- The buffering area first set;
Pixel Information in the buffering area is copied in the browser window and is shown.
5. a kind of device for displaying information of custom browser window shape, it is characterised in that including:
Creation module, for creating the browser application process for rendering image with self-defined shape and using layered window Create the browser window with self-defined shape;
Event checking module, for detecting the event occurred in the browser window, and the event is sent to described clear Device application process of looking at is handled;And
Pixel detection module, for detect it is described render the Pixel Information of image, and the Pixel Information for rendering image is copied Shellfish is extremely shown in the browser window.
6. the device for displaying information of custom browser window shape according to claim 5, it is characterised in that it is described from Defining the device for displaying information of browser window shape also includes:
Self-defined shape setup module, for pre-setting the self-defined shape and the browser window for rendering image Self-defined shape, and the self-defined shape for rendering image is identical with the self-defined shape of the browser window.
7. the device for displaying information of custom browser window shape according to claim 5, it is characterised in that the picture Plain detection module specifically for,
The Pixel Information of image is rendered described in detection, and the Pixel Information for rendering image is copied to what is pre-set successively Buffering area;
When the quantity of the Pixel Information in the buffering area is more than setting value, the Pixel Information in the buffering area is copied to It is shown in the browser window.
8. the device for displaying information of custom browser window shape according to claim 5, it is characterised in that the picture Plain detection module specifically for,
The all pixels information of image is rendered described in detection, and all pixels information for rendering image is copied to successively pre- The buffering area first set;
Pixel Information in the buffering area is copied in the browser window and is shown.
CN201210519650.8A 2012-12-06 2012-12-06 The information displaying method and device for displaying information of custom browser window shape Active CN103853420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210519650.8A CN103853420B (en) 2012-12-06 2012-12-06 The information displaying method and device for displaying information of custom browser window shape

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210519650.8A CN103853420B (en) 2012-12-06 2012-12-06 The information displaying method and device for displaying information of custom browser window shape

Publications (2)

Publication Number Publication Date
CN103853420A CN103853420A (en) 2014-06-11
CN103853420B true CN103853420B (en) 2017-07-18

Family

ID=50861158

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210519650.8A Active CN103853420B (en) 2012-12-06 2012-12-06 The information displaying method and device for displaying information of custom browser window shape

Country Status (1)

Country Link
CN (1) CN103853420B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101454744A (en) * 2006-06-27 2009-06-10 国际商业机器公司 Method, program, and data processing system for modifying shape of display object
US7933473B2 (en) * 2008-06-24 2011-04-26 Microsoft Corporation Multiple resolution image storage
CN102414682A (en) * 2009-05-01 2012-04-11 高通股份有限公司 Method and apparatus for providing scraped web pages in a graphical user interface
CN102724413A (en) * 2011-05-09 2012-10-10 新奥特(北京)视频技术有限公司 Method and system for realizing caption special effect by self-defining polygon unit
CN102760139A (en) * 2011-04-29 2012-10-31 国际商业机器公司 Webpage processing method and webpage processing system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070299830A1 (en) * 2006-06-26 2007-12-27 Christopher Muenchhoff Display of search results

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101454744A (en) * 2006-06-27 2009-06-10 国际商业机器公司 Method, program, and data processing system for modifying shape of display object
US7933473B2 (en) * 2008-06-24 2011-04-26 Microsoft Corporation Multiple resolution image storage
CN102414682A (en) * 2009-05-01 2012-04-11 高通股份有限公司 Method and apparatus for providing scraped web pages in a graphical user interface
CN102760139A (en) * 2011-04-29 2012-10-31 国际商业机器公司 Webpage processing method and webpage processing system
CN102724413A (en) * 2011-05-09 2012-10-10 新奥特(北京)视频技术有限公司 Method and system for realizing caption special effect by self-defining polygon unit

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
分层窗口(Layered windows);Webllusory;《CSDN》;20101012;1-6 *

Also Published As

Publication number Publication date
CN103853420A (en) 2014-06-11

Similar Documents

Publication Publication Date Title
US9070211B1 (en) Webview tag for a sandboxed multiprocess browser
CN103336816B (en) Canvas element rendering method and device realized on Android system based on GPU (Graphic Processing Unit)
EP3016091A1 (en) Rendering method, rendering apparatus, and electronic apparatus
US20230039100A1 (en) Multi-layer reprojection techniques for augmented reality
WO2016045523A1 (en) Display method and device for interface contents of mobile terminal and terminal
CN104680532B (en) A kind of object marking method and device
US20090235180A1 (en) Method and Apparatus for Restoring an Occluded Window in Application Sharing Software
CN102662659B (en) A kind of image display processing method and system
CN105573694B (en) Multiple display rendering of digital content
CN104850372B (en) page display method and device
WO2013091483A1 (en) Method and device for software interface display on terminal, and computer storage medium
CN103927780B (en) The method and three-dimensional display system that a kind of more video cards render
US10176555B2 (en) Method and device for simulating a wide field of view
TW201624354A (en) Method and apparatus for displaying information
US9798437B2 (en) Information processing method and electronic device
US20170249925A1 (en) Method and device for switching playing mode of a mobile terminal, storage medium and program
US20170103430A1 (en) Responsive advertisement formats based on viewability pixel data
US8854368B1 (en) Point sprite rendering in a cross platform environment
JP2006528811A5 (en)
CN103606179A (en) Animation image display method and device
CN103853420B (en) The information displaying method and device for displaying information of custom browser window shape
TW201327466A (en) Image editing system and editing method
CN103336818B (en) Method and device for alignment after webpage zoom on electronic equipment
CN109885172B (en) Object interaction display method and system based on Augmented Reality (AR)
JP2011013385A (en) Bifocal display device and bifocal display method

Legal Events

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