CN108040144A - Electronic device, image drawing method and Related product - Google Patents

Electronic device, image drawing method and Related product Download PDF

Info

Publication number
CN108040144A
CN108040144A CN201711330384.3A CN201711330384A CN108040144A CN 108040144 A CN108040144 A CN 108040144A CN 201711330384 A CN201711330384 A CN 201711330384A CN 108040144 A CN108040144 A CN 108040144A
Authority
CN
China
Prior art keywords
area
data
electronic device
target photo
display screen
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.)
Pending
Application number
CN201711330384.3A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201711330384.3A priority Critical patent/CN108040144A/en
Publication of CN108040144A publication Critical patent/CN108040144A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/02Constructional features of telephone sets
    • H04M1/0202Portable telephone sets, e.g. cordless phones, mobile phones or bar type handsets
    • H04M1/026Details of the structure or mounting of specific components
    • H04M1/0266Details of the structure or mounting of specific components for a display module assembly
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Environmental & Geological Engineering (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a kind of electronic device, image drawing method and Related product, including:Housing, the cover board of setting on the housing, the cover inner surface is provided with first area and the second area in addition to the first area, the first area is provided with touching display screen, the touching display screen includes irregular shaped region and regular domain, and the electronic device is additionally provided with the processor and memory for connecting the touching display screen;The processor, for when detecting the display operation for Target Photo, reading the view data of the Target Photo of the memory storage;And for choosing in described image data with the view data of the first area position correspondence it is first object data;And for drawing touching display screen described in the first object data, for showing the Target Photo.The embodiment of the present invention is conducive to reduce Image Rendering data while display effect is not influenced, and improves Image Rendering speed.

Description

Electronic device, image drawing method and Related product
Technical field
The present invention relates to technical field of mobile terminals, and in particular to a kind of electronic device, image drawing method and related production Product.
Background technology
As a large amount of popularizations of smart mobile phone are with fast-developing, smart mobile phone is gradually more and more thinner towards body, display screen Increasing, physical button is fewer and fewer, and the more and more intelligent direction of application is developed, to increase the usage experience of people.
At present, smart mobile phone shields technology using comprehensive more, but in the case of using screen comprehensively, due to preposition shooting Head, front sensors etc. are set, and display screen can be made irregular shaped region occur, then, smart mobile phone is being provided with the same of the display screen When how more preferable exhibiting pictures become need thinking the problem of.
The content of the invention
An embodiment of the present invention provides a kind of electronic device, image drawing method and Related product, is not being influenced to carry Image Rendering data are reduced while display effect, improve Image Rendering speed.
In a first aspect, the embodiment of the present invention provides a kind of electronic device, including housing, the lid of setting on the housing Plate, the cover inner surface are provided with first area and the second area in addition to the first area, and the first area is set Touching display screen is equipped with, the touching display screen includes irregular shaped region and regular domain, and the electronic device is additionally provided with connection The processor and memory of the touching display screen;
The processor, for when detecting the display operation for Target Photo, reading the memory storage The view data of the Target Photo;And for choosing the image in described image data with the first area position correspondence Data are first object data;And for drawing the first object data
The touching display screen, for showing the Target Photo.
Second aspect, the embodiment of the present invention provide a kind of image drawing method, applied to electronic device, the electronic device Including housing, the cover board of setting on the housing, the cover inner surface is provided with first area and except the first area Outside second area, the first area is provided with touching display screen, including:
When detecting the display operation for Target Photo, the view data of the Target Photo is read;
The view data chosen in described image data with the first area position correspondence is first object data;
The first object data are drawn to show the Target Photo.
The third aspect, the embodiment of the present invention provide a kind of image plotting device, applied to electronic device, the electronic device Including housing, the cover board of setting on the housing, the cover inner surface is provided with first area and except the first area Outside second area, the first area is provided with touching display screen, and described image drawing apparatus includes reading unit, chooses Unit and drawing unit, wherein,
The reading unit, for when detecting the display operation for Target Photo, reading the Target Photo View data;
The selection unit, in the described image data read for choosing the reading unit with first area position It is first object data to put corresponding view data;
The drawing unit, for drawing the first object data of the selection unit selection to show the target Picture.
Fourth aspect, the embodiment of the present invention provide a kind of electronic device, including processor, memory, communication interface and One or more programs, wherein, said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned Manage device to perform, above procedure includes being used for the instruction for performing the step in second aspect either method of the embodiment of the present invention.
5th aspect, an embodiment of the present invention provides a kind of computer-readable recording medium, wherein, above computer is readable Computer program of the storage medium storage for electronic data interchange, wherein, above computer program causes computer to perform such as Part or all of step described in second aspect either method of the embodiment of the present invention.
6th aspect, an embodiment of the present invention provides a kind of computer program product, wherein, above computer program product Non-transient computer-readable recording medium including storing computer program, above computer program are operable to make calculating Machine is performed such as the part or all of step described in second aspect either method of the embodiment of the present invention.The computer program product It can be a software installation bag.
As can be seen that in the embodiment of the present invention, electronic device includes housing, the cover board being arranged on housing, table in cover board Face is provided with first area and the second area in addition to first area, and first area is provided with touching display screen, and touch-control is shown Screen includes irregular shaped region and regular domain, which is additionally provided with the processor and memory of connection touching display screen;And The processor is used for the picture number for when detecting the display operation for Target Photo, reading the Target Photo of memory storage According to, and it is first object data to choose in view data with the view data of first area position correspondence, draws first object number According to;The touching display screen is used for display target picture.As it can be seen that there is irregular shaped region in first area, so make the aobvious of the electronic device Display screen accounting is higher relative to the electronic device that the button regular domain such as rollback key is provided with conventional cover plate, makes entire display screen Space availability ratio bigger, further, since second area does not possess display function, therefore schemed according to this characteristic of second area Piece only draws the corresponding view data in first area when showing, is conducive to reduction image while display effect is not influenced and paints Data processed, improve Image Rendering speed.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without creative efforts, can be with Other attached drawings are obtained according to these attached drawings.
Figure 1A is a kind of structure diagram of electronic device provided in an embodiment of the present invention;
Figure 1B is the structure diagram of another electronic device provided in an embodiment of the present invention;
Fig. 1 C are the structure diagrams of another electronic device provided in an embodiment of the present invention;
Fig. 2A is a kind of flow diagram of image drawing method disclosed by the embodiments of the present invention;
Fig. 2 B are that second area is corresponded at the top of electronic device under a kind of portrait layout state disclosed by the embodiments of the present invention First object data;
Fig. 2 C are a kind of second area disclosed by the embodiments of the present invention corresponding first objects at the lower section of electronic device Data;
Fig. 2 D are that second area is corresponded at the right side of electronic device under a kind of transverse screen state disclosed by the embodiments of the present invention First object data;
Fig. 2 E are that second area is corresponded at the left side of electronic device under a kind of transverse screen state disclosed by the embodiments of the present invention First object data;
Fig. 3 is the flow diagram of another image drawing method disclosed by the embodiments of the present invention;
Fig. 4 is the flow diagram of another image drawing method disclosed by the embodiments of the present invention;
Fig. 5 is a kind of structure diagram of electronic device disclosed by the embodiments of the present invention;
Fig. 6 is a kind of functional unit composition block diagram of image plotting device disclosed by the embodiments of the present invention.
Embodiment
In order to make those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention Attached drawing, is clearly and completely described the technical solution in the embodiment of the present invention, it is clear that described embodiment is only Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without creative efforts, belong to the scope of protection of the invention.
Term " first ", " second " in description and claims of this specification and above-mentioned attached drawing etc. are to be used to distinguish Different objects, rather than for describing particular order.In addition, term " comprising " and " having " and their any deformations, it is intended that It is to cover non-exclusive include.Such as process, method, system, product or the equipment for containing series of steps or unit do not have The step of having listed or unit are defined in, but alternatively further includes the step of not listing or unit, or is alternatively also wrapped Include for other intrinsic steps of these processes, method, product or equipment or unit.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments Containing at least one embodiment of the present invention.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
Mobile terminal involved by the embodiment of the present invention can include the various handheld devices with wireless communication function, Mobile unit, wearable device, computing device or other processing equipments for being connected to radio modem, and various forms User equipment (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal Device) etc..For convenience of description, apparatus mentioned above is referred to as mobile terminal.
Describe in detail below to the embodiment of the present invention.
A is please referred to Fig.1, Figure 1A is that an embodiment of the present invention provides a kind of structure diagram of electronic device 100, above-mentioned electricity Sub-device 100 includes:Housing 110, the cover board 120 being arranged on the housing 110,120 inner surface of cover board are provided with One region 121 and the second area 122 in addition to the first area, the first area 121 are provided with touching display screen 130, the touching display screen 130 includes irregular shaped region 131 and regular domain 132, and the electronic device 100 is additionally provided with connection The processor 140 and memory 150 of the touching display screen 130;Wherein,
The processor 140, for when detecting the display operation for Target Photo, reading the memory 150 The view data of the Target Photo of storage;And for choose in described image data with 121 position of first area Corresponding view data is first object data;And for drawing the first object data;
The touching display screen 130, for showing the Target Photo.
Wherein, the irregular shaped region refers to the display area of non-regular shape, such as the irregular shaped region 131 in Figure 1A, rule Region refers to the display area of regular shape, such as the regular domain 132 of the rectangle in Figure 1A.The irregular shaped region 131 and rule Region 132 forms the display screen touch-control 130, that is to say, that irregular shaped region 131 is identical with the function of regular domain 132, all may be used Shown with carrying out content.
Wherein, the touching display screen 130 includes touch screen and display screen, and the display screen includes Organic Light Emitting Diode Display screen OLED.
Wherein, the electronic device 100 can include a second area 122, can also include multiple described the Two regions 122, as shown in Figure 1B, the electronic device 100 include two second areas 1221 and 1222, it is each this second Region 122 may each comprise loudspeaker 151 and microphone 152, when the second area 122 is multiple, the electronic device 100 required functional units, such as front camera, face identification device, proximity sensor, ambient light sensor etc. can be with It is evenly distributed in multiple second areas 122, same amount of functional unit can also be included in each second area, Unique restriction is not done herein.
Wherein, in the case where the electronic device includes multiple second areas 122, in order to make the electronic device not With upper and lower differentiation, the direction that user thinks to grip anyway above and below electronic device is allowed to be correct, the electronics dress Symmetrical physical button can be set by putting, as shown in Figure 1 C, label 161,162,163,164 can be respectively volume lifting key, Volume reduces key, switch key, switch mobile network's key etc., and the function of this four physical buttons can be according to mobile terminal Attitude information be adjusted, such as according to the attitude information of user adjust electronic device under current attitude information right side on First button in side is always switch key, and second button is always switch mobile network key, the below left side above right side One button is always that volume lifts key, second button in left side lower section is always that volume reduces key, makes user in the mistake used Entanglement will not be caused in journey, lifts the usage experience of user.
Wherein, processor 140 is the control centre of electronic device, utilizes various interfaces and the whole electronic device of connection Various pieces, by running or performing the software program and/or module that are stored in memory, and call and be stored in storage Data in device, perform the various functions and processing data of electronic device, so as to carry out integral monitoring to electronic device.It is optional , processor can integrate application processor and modem processor, wherein, application processor mainly handles operating system, uses Family interface and application program etc., modem processor mainly handles wireless communication.It is understood that above-mentioned modulatedemodulate is mediated Reason device can not also be integrated into processor.
Wherein, memory 150 can be used for storage software program and module, and processor is stored in memory by operation Software program and module, so as to perform various function application and the data processing of electronic device.Memory can mainly include Storing program area and storage data field, wherein, storing program area can storage program area, the application journey needed at least one function Sequence etc.;Storage data field can be stored uses created data etc. according to electronic device.In addition, memory can be included at a high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
As can be seen that in the embodiment of the present invention, electronic device includes housing, the cover board being arranged on housing, table in cover board Face is provided with first area and the second area in addition to first area, and first area is provided with touching display screen, and touch-control is shown Screen includes irregular shaped region and regular domain, which is additionally provided with the processor and memory of connection touching display screen;And The processor is used for the figure for when detecting the display operation for Target Photo, reading the Target Photo of the memory storage As data, and it be first object data to choose in view data with the view data of first area position correspondence, the first mesh of drafting Mark data;The touching display screen is used for display target picture.As it can be seen that there is irregular shaped region in first area, so make the electronic device Display screen accounting it is higher relative to the electronic device that the button regular domain such as rollback key is provided with conventional cover plate, make overall aobvious The space availability ratio bigger of display screen, further, since second area does not possess display function, therefore according to this characteristic of second area The corresponding view data in first area is only drawn when picture is shown, is conducive to reduction figure while display effect is not influenced As drawing data, Image Rendering speed is improved.
In a possible example, the electronic device 100 further includes gravity sensor, in the selection described image View data in data with 121 position correspondence of first area is first object data aspect, and the gravity sensor is used In:Determine the attitude information of the electronic device 100;
The processor 140 is specifically used for:First area described in described image data is determined according to the attitude information The 121 corresponding first object data;And for choosing the first object data.
In this possible example, firstth area described in described image data is determined according to the attitude information described In terms of the corresponding first object data in domain 121, the processor 140 is specifically used for:Institute is determined according to the attitude information The screen state of touching display screen 130 is stated, the screen state includes portrait layout state and transverse screen state;And for according to Screen state determines the corresponding first object data in first area 121 described in described image data.
In a possible example, the display operation for the Target Photo is for the touching display screen The slide of the reference picture of 130 displays, the reference picture are the picture outside the Target Photo.
In a possible example, the processor 140 draws the first object data to show the target figure After piece, it is additionally operable to:When the slide for detecting the Target Photo for the touching display screen 130 display, and institute The slip gesture of slide is stated when the stay time of the touching display screen 130 is more than preset duration threshold value, described in acquisition With the view data of 122 position correspondence of second area it is the second target data in view data;It is and described for drawing Second target data.
Fig. 2A is referred to, Fig. 2A is that an embodiment of the present invention provides a kind of flow diagram of image drawing method, application In such as Figure 1A to 1C any one of them electronic devices, which includes housing, the cover board of setting on the housing, institute State cover inner surface and be provided with first area and the second area in addition to the first area, the first area is provided with tactile Display screen is controlled, as shown in the figure, this image drawing method includes:
S201, electronic device read the image of the Target Photo when detecting the display operation for Target Photo Data.
Wherein, the display operation for Target Photo can be diversified, such as can light display screen Operation, then target image is unlock interface, or can be unlock operation, then target image for unlock after the system left side, Or can be the operation for opening any one application program, then target image is main interface of application program etc., is not done herein It is unique to limit.
Wherein, described image data are stored at the data in the memory of the electronic device or in video memory, institute Stating view data includes the data of each pixel of the Target Photo, and the data of each pixel exist including each data Location parameter, luminance parameter, colorimetric parameter, saturation parameters in described image etc..
S202, the electronic device choose the view data with the first area position correspondence in described image data and are First object data.
Wherein, shown by the first area when first object data are displayed in full screen including the Target Photo View data.
S203, the electronic device draw the first object data to show the Target Photo.
Wherein, the Target Photo of the display only includes the first object data in first area, and not including should In the data that second area is shown.
As can be seen that in the embodiment of the present invention, electronic device first when detecting the display operation for Target Photo, The view data of the Target Photo is read, secondly, chooses the figure with the first area position correspondence in described image data Picture data are first object data, finally, draw the first object data to show the Target Photo.As it can be seen that the electronics The second area of device does not possess display function, therefore only draws first when picture is shown according to this characteristic of second area The corresponding view data in region, is conducive to reduce Image Rendering data while display effect is not influenced, improves Image Rendering Speed.
In a possible example, the image chosen in described image data with the first area position correspondence Data are first object data, including:
Determine the attitude information of the electronic device;
The corresponding first object data in first area described in described image data are determined according to the attitude information;
Choose the first object data.
Wherein, the electronic device can determine the electronic device according to built-in gravity sensor and/or gyroscope Attitude information, the attitude information includes horizontal attitude, vertical posture, lateral attitude (including angle of inclination) etc..
Wherein, the position of the corresponding first area of different attitude informations is different, then corresponding first object data are not Together, for example, when the electronic device includes a second area, the second area is located at institute under current pose information State the top (as shown in Figure 2 B) of electronic device and the second area is located under current pose information under the electronic device The corresponding first object data are different (as shown in Figure 2 C) for side.
As it can be seen that in this example, electronic device determines the corresponding first object data in first area according to attitude information, and then First object data are chosen, are conducive to be lifted the correctness of first object data decimation, the reasonability that lifting picture is shown.
It is described that first area described in described image data is determined according to the attitude information in this possible example The corresponding first object data, including:
The screen state of the touching display screen is determined according to the attitude information, the screen state includes portrait layout state With transverse screen state;
The corresponding first object data in first area described in described image data are determined according to the screen state.
Wherein, the corresponding first object data of different screen states are different, for example, as illustrated by figures 2 b and 2 c, when When the screen state is portrait layout state, the first object data are except second area or lower section above the Target Photo Data outside the corresponding data of second area, it is as shown in figures 2d and 2e, and when the screen state is transverse screen state, described First object data are except second area on the left of the Target Photo or the data in addition to the corresponding data of right side second area.
As it can be seen that in this example, electronic device determines the screen state of touching display screen according to attitude information, according to different Screen state determines the corresponding first object data in different first areas, be conducive to that first object data determine accurate fixed and Reasonability.
In a possible example, the display operation for the Target Photo is for the touching display screen The slide of the reference picture of display, the reference picture are the picture outside the Target Photo.
Wherein, after the electronic device performs the slide, the picture that the touching display screen is shown is institute State Target Photo.
As it can be seen that in this example, electronic device is in the cunning that the display operation of the Target Photo detected is for reference picture During dynamic operation, the view data in the corresponding Target Photo in first area is only drawn, under the scene of quick sliding, reduces and waits to paint The view data of system, is conducive to be lifted the display speed of picture, lifts the reading effect of user.
In a possible example, after the drafting first object data are to show the Target Photo, institute The method of stating further includes:
When the slide for detecting the Target Photo shown for the touching display screen, and the slide Slip gesture when the stay time of the touching display screen is more than preset duration threshold value, obtain described image data in institute The view data for stating second area position correspondence is the second target data;
Draw second target data.
Wherein, the view data obtained in described image data with the second area position correspondence is the second number of targets According to second target data can be the total data of the second area position correspondence, or the second area The partial data of position correspondence, as shown in Figure 2 D, the number of the second target data of acquisition can stop according to the slide The position stayed on the touching display screen is determined, when the slide rests on first on the touching display screen Second target data obtained during position rests on the second place on the touching display screen more than the slide When second target data that obtains.
As it can be seen that in this example, electronic device is when detecting the Target Photo that is shown for the touching display screen Slide, and the slip gesture of the slide is more than preset duration threshold value in the stay time of the touching display screen When, show that user wants to check the view data sheltered from by the second area, therefore the second target data is drawn at this moment, just In realizing completely presenting and check for Target Photo, be conducive to lift the integrality that picture is shown.
It is consistent with the embodiment shown in above-mentioned Fig. 2A, referring to Fig. 3, Fig. 3 is a kind of figure provided in an embodiment of the present invention As the flow diagram of method for drafting, applied to the electronic device as described in Figure 1A to 1C any embodiments, the electronic device bag Include housing, cover board on the housing be set, the cover inner surface be provided with first area and except the first area it Outer second area, the first area are provided with touching display screen.As shown in the figure, this image drawing method includes:
S301, electronic device read the image of the Target Photo when detecting the display operation for Target Photo Data.
S302, the electronic device determine the attitude information of the electronic device.
S303, the electronic device determine the screen state of the touching display screen, the screen according to the attitude information Tentiform state includes portrait layout state and transverse screen state.
S304, the electronic device determine that first area is corresponding described in described image data according to the screen state The first object data.
S305, the electronic device choose the first object data.
S306, the electronic device draw the first object data to show the Target Photo.
As can be seen that in the embodiment of the present invention, electronic device first when detecting the display operation for Target Photo, The view data of the Target Photo is read, secondly, chooses the figure with the first area position correspondence in described image data Picture data are first object data, finally, draw the first object data to show the Target Photo.As it can be seen that the electronics The second area of device does not possess display function, therefore only draws first when picture is shown according to this characteristic of second area The corresponding view data in region, is conducive to reduce Image Rendering data while display effect is not influenced, improves Image Rendering Speed.
In addition, electronic device determines the screen state of touching display screen according to attitude information, according to different screen states Determine the corresponding first object data in different first areas, be conducive to the accurate fixed and reasonability that first object data determine.
It is consistent with the embodiment shown in above-mentioned Fig. 2A, referring to Fig. 4, Fig. 4 is a kind of figure provided in an embodiment of the present invention As the flow diagram of method for drafting, applied to the electronic device as described in Figure 1A to 1C any embodiments, the electronic device bag Include housing, cover board on the housing be set, the cover inner surface be provided with first area and except the first area it Outer second area, the first area are provided with touching display screen.As shown in the figure, this image drawing method includes:
S401, electronic device read the image of the Target Photo when detecting the display operation for Target Photo Data.
S402, the electronic device choose the view data with the first area position correspondence in described image data and are First object data.
S403, the electronic device draw the first object data to show the Target Photo.
S404, the electronic device work as the slide for detecting the Target Photo shown for the touching display screen, And the slip gesture of the slide is when the stay time of the touching display screen is more than preset duration threshold value, described in acquisition With the view data of the second area position correspondence it is the second target data in view data.
S405, the electronic device draw second target data.
As can be seen that in the embodiment of the present invention, electronic device first when detecting the display operation for Target Photo, The view data of the Target Photo is read, secondly, chooses the figure with the first area position correspondence in described image data Picture data are first object data, finally, draw the first object data to show the Target Photo.As it can be seen that the electronics The second area of device does not possess display function, therefore only draws first when picture is shown according to this characteristic of second area The corresponding view data in region, is conducive to reduce Image Rendering data while display effect is not influenced, improves Image Rendering Speed.
In addition, electronic device the Target Photo detected display operation be for reference picture slide when, The view data in the corresponding Target Photo in first area is only drawn, under the scene of quick sliding, reduces image to be drawn Data, are conducive to be lifted the display speed of picture, lift the reading effect of user.
In addition, electronic device works as the slide for detecting the Target Photo shown for the touching display screen, And the slip gesture of the slide shows user when the stay time of the touching display screen is more than preset duration threshold value Want to check the view data sheltered from by the second area, therefore draw the second target data at this moment, be easy to implement target The complete of picture is presented and checked, is conducive to lift the integrality that picture is shown.
It is consistent with the embodiment shown in above-mentioned Fig. 2A, Fig. 3, Fig. 4, provided referring to Fig. 5, Fig. 5 is the embodiment of the present invention A kind of electronic device structure diagram, which includes housing, sets cover board on the housing, the cover board Inner surface is provided with first area and the second area in addition to the first area, and the first area is provided with touch-control and shows Screen;As shown in the figure, the electronic device further includes processor, memory, communication interface and one or more programs, wherein, on State one or more programs to be stored in above-mentioned memory, and be configured to be performed by above-mentioned processor, above procedure includes For performing the instruction of following steps;
When detecting the display operation for Target Photo, the view data of the Target Photo is read;
The view data chosen in described image data with the first area position correspondence is first object data;
The first object data are drawn to show the Target Photo.
As can be seen that in the embodiment of the present invention, electronic device first when detecting the display operation for Target Photo, The view data of the Target Photo is read, secondly, chooses the figure with the first area position correspondence in described image data Picture data are first object data, finally, draw the first object data to show the Target Photo.As it can be seen that the electronics The second area of device does not possess display function, therefore only draws first when picture is shown according to this characteristic of second area The corresponding view data in region, is conducive to reduce Image Rendering data while display effect is not influenced, improves Image Rendering Speed.
In a possible example, the figure in the selection described image data with the first area position correspondence In terms of being first object data as data, the instruction in described program is specifically used for performing following operate:Determine the electronics dress The attitude information put;And for according to the attitude information determine first area described in described image data it is corresponding described in First object data;And for choosing the first object data.
In this possible example, firstth area described in described image data is determined according to the attitude information described In terms of the corresponding first object data in domain, the instruction in described program is specifically used for performing following operation:According to the appearance State information determines the screen state of the touching display screen, and the screen state includes portrait layout state and transverse screen state;And use In the corresponding first object data in first area described in definite described image data according to the screen state.
In a possible example, the display operation for the Target Photo is for the touching display screen The slide of the reference picture of display, the reference picture are the picture outside the Target Photo.
In a possible example, described program further includes the instruction for performing following steps:Described in the drafting After first object data are to show the Target Photo, when detecting the target figure that shows for the touching display screen The slide of piece, and the slip gesture of the slide is more than preset duration threshold in the stay time of the touching display screen During value, the view data obtained in described image data with the second area position correspondence is the second target data;And use In drafting second target data.
It is above-mentioned that mainly the scheme of the embodiment of the present invention is described from the angle of method side implementation procedure.It is appreciated that , for electronic device in order to realize above-mentioned function, it comprises perform the corresponding hardware configuration of each function and/or software mould Block.Those skilled in the art should be readily appreciated that, with reference to each exemplary unit of the embodiments described herein description And algorithm steps, the present invention can be realized with the combining form of hardware or hardware and computer software.Some function actually with The mode of hardware or computer software driving hardware performs, application-specific and design constraint bar depending on technical solution Part.Professional technician specifically can realize described function to each using distinct methods, but this reality Now it is not considered that beyond the scope of this invention.
The embodiment of the present invention can carry out electronic device according to the above method example division of functional unit, for example, can Each functional unit is divided with each function of correspondence, two or more functions can also be integrated in a processing unit In.Above-mentioned integrated unit can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.Need It is noted that the division in the embodiment of the present invention to unit is schematical, and it is only a kind of division of logic function, it is actual real There can be other dividing mode now.
Fig. 6 is the functional unit composition block diagram of image plotting device 600 involved in the embodiment of the present application.The image is painted Device 600 processed is applied to electronic device, which includes housing, sets cover board on the housing, in the cover board Surface is provided with first area and the second area in addition to the first area, and the first area is provided with touch-control and shows Screen, image plotting device 600 include:Reading unit 601, choose unit 602 and drawing unit 603, wherein,
The reading unit 601, for when detecting the display operation for Target Photo, reading the Target Photo View data;
The selection unit 602, with described first in the described image data read for choosing the reading unit 601 The corresponding view data of regional location is first object data;
The drawing unit 603, for drawing the first object data of selection unit 602 selection to show State Target Photo.
As can be seen that in the embodiment of the present application, electronic device first when detecting the display operation for Target Photo, The view data of the Target Photo is read, secondly, chooses the figure with the first area position correspondence in described image data Picture data are first object data, finally, draw the first object data to show the Target Photo.As it can be seen that the electronics The second area of device does not possess display function, therefore only draws first when picture is shown according to this characteristic of second area The corresponding view data in region, is conducive to reduce Image Rendering data while display effect is not influenced, improves Image Rendering Speed.
In a possible example, the electronic device further includes determination unit,
View data with the first area position correspondence in the selection described image data is first object number According to aspect, the determination unit is used for:Determine the attitude information of the electronic device;And for true according to the attitude information Determine the corresponding first object data in first area described in described image data;
The selection unit is specifically used for:Choose the first object data that the determination unit determines.
In this possible example, firstth area described in described image data is determined according to the attitude information described In terms of the corresponding first object data in domain, the determination unit is specifically used for:Described touch is determined according to the attitude information The screen state of display screen is controlled, the screen state includes portrait layout state and transverse screen state;And for according to the screen shape State determines the corresponding first object data in first area described in described image data.
In a possible example, the display operation for the Target Photo is for the touching display screen The slide of the reference picture of display, the reference picture are the picture outside the Target Photo.
In a possible example, the selection unit 602 draws the first object data to show described After stating Target Photo, it is additionally operable to:When the slide for detecting the Target Photo shown for the touching display screen, And the slip gesture of the slide is when the stay time of the touching display screen is more than preset duration threshold value, described in acquisition With the view data of the second area position correspondence it is the second target data in view data;
The drawing unit 603 is additionally operable to:Draw second target data that the selection unit 602 is chosen.
Wherein, reading unit 601 can be touching display screen and processor, and choosing unit 602 and drawing unit 603 can be with It is processor.
The embodiment of the present invention also provides a kind of computer-readable storage medium, wherein, computer-readable storage medium storage is used for electricity The computer program that subdata exchanges, the computer program cause computer to perform any as described in above-mentioned embodiment of the method The part or all of step of method, above computer include mobile terminal.
The embodiment of the present invention also provides a kind of computer program product, and above computer program product includes storing calculating The non-transient computer-readable recording medium of machine program, above computer program are operable to make computer perform such as above-mentioned side The part or all of step of either method described in method embodiment.The computer program product can be a software installation Bag, above computer include mobile terminal.
It should be noted that for foregoing each method embodiment, in order to be briefly described, therefore it is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention and from the limitation of described sequence of movement because According to the present invention, some steps can use other orders or be carried out at the same time.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, and involved action and module are not necessarily of the invention It is necessary.
In the above-described embodiments, the description to each embodiment all emphasizes particularly on different fields, and does not have the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed device, can be by another way Realize.For example, device embodiment described above is only schematical, such as the division of said units, it is only one kind Division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can combine or can To be integrated into another system, or some features can be ignored, or not perform.Another, shown or discussed is mutual Coupling, direct-coupling or communication connection can be by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, Can be electrical or other forms.
The above-mentioned unit illustrated as separating component may or may not be physically separate, be shown as unit The component shown may or may not be physical location, you can with positioned at a place, or can also be distributed to multiple In network unit.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units integrate in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, can also be realized in the form of SFU software functional unit.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and is used as independent production marketing or use When, it can be stored in a computer-readable access to memory.Based on such understanding, technical scheme substantially or Person say the part to contribute to the prior art or the technical solution all or part can in the form of software product body Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) performs all or part of each embodiment above method of the present invention Step.And foregoing memory includes:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. are various can be with the medium of store program codes.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct relevant hardware to complete by program, which can be stored in a computer-readable memory, memory It can include:Flash disk, read-only storage (English:Read-Only Memory, referred to as:ROM), random access device (English: Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present invention is described in detail above, specific case used herein to the principle of the present invention and Embodiment is set forth, and the explanation of above example is only intended to help to understand method and its core concept of the invention; Meanwhile for those of ordinary skill in the art, according to the thought of the present invention, can in specific embodiments and applications There is change part, in conclusion this specification content should not be construed as limiting the invention.

Claims (13)

1. a kind of electronic device, it is characterised in that including housing, the cover board of setting on the housing, the cover inner surface First area and the second area in addition to the first area are provided with, the first area is provided with touching display screen, institute Stating touching display screen includes irregular shaped region and regular domain, and the electronic device is additionally provided with the place for connecting the touching display screen Manage device and memory;
The processor, for when detecting the display operation for Target Photo, reading the described of the memory storage The view data of Target Photo;And for choosing the view data in described image data with the first area position correspondence For first object data;And for drawing the first object data;
The touching display screen, for showing the Target Photo.
2. device according to claim 1, it is characterised in that the electronic device further includes gravity sensor, in the choosing The view data in described image data with the first area position correspondence is taken to be passed for first object data aspect, the gravity Sensor is used for:Determine the attitude information of the electronic device;
The processor is specifically used for:The corresponding institute in first area described in described image data is determined according to the attitude information State first object data;And for choosing the first object data.
3. the apparatus of claim 2, it is characterised in that described image number is determined according to the attitude information described In terms of the corresponding first object data in the first area described in, the processor is specifically used for:Believed according to the posture Breath determines the screen state of the touching display screen, and the screen state includes portrait layout state and transverse screen state;And for root The corresponding first object data in first area described in described image data are determined according to the screen state.
4. the device according to Claims 2 or 3, it is characterised in that the display operation for the Target Photo is The slide of the reference picture shown for the touching display screen, the reference picture are the figure outside the Target Photo Piece.
5. according to claim 1-4 any one of them devices, it is characterised in that the processor draws the first object number After showing the Target Photo according to this, it is additionally operable to:When detecting the Target Photo that shows for the touching display screen Slide, and the slip gesture of the slide is more than preset duration threshold value in the stay time of the touching display screen When, the view data obtained in described image data with the second area position correspondence is the second target data;And it is used for Draw second target data.
6. a kind of image drawing method, it is characterised in that applied to electronic device, the electronic device includes housing, is arranged on Cover board on the housing, the cover inner surface are provided with first area and the second area in addition to the first area, The first area is provided with touching display screen, including:
When detecting the display operation for Target Photo, the view data of the Target Photo is read;
The view data chosen in described image data with the first area position correspondence is first object data;
The first object data are drawn to show the Target Photo.
7. according to the method described in claim 6, it is characterized in that, it is described selection described image data in the first area The view data of position correspondence is first object data, including:
Determine the attitude information of the electronic device;
The corresponding first object data in first area described in described image data are determined according to the attitude information;
Choose the first object data.
8. the method according to power requires 7, it is characterised in that described to be determined according to the attitude information in described image data The corresponding first object data in the first area, including:
The screen state of the touching display screen is determined according to the attitude information, the screen state includes portrait layout state and horizontal stroke Screen state;
The corresponding first object data in first area described in described image data are determined according to the screen state.
9. the method according to power requires 7 or 8, it is characterised in that the display operation for the Target Photo is pin The slide of the reference picture shown to the touching display screen, the reference picture are the figure outside the Target Photo Piece.
10. according to claim 6-9 any one of them methods, it is characterised in that it is described draw the first object data with After showing the Target Photo, the method further includes:
When the slide for detecting the Target Photo shown for the touching display screen, and the cunning of the slide Gesture of starting is obtained in described image data with described the when the stay time of the touching display screen is more than preset duration threshold value The corresponding view data of two regional locations is the second target data;
Draw second target data.
11. a kind of image plotting device, it is characterised in that applied to electronic device, the electronic device includes housing, is arranged on Cover board on the housing, the cover inner surface are provided with first area and the second area in addition to the first area, The first area is provided with touching display screen, and described image drawing apparatus includes reading unit, chooses unit and drawing unit, Wherein,
The reading unit, for when detecting the display operation for Target Photo, reading the image of the Target Photo Data;
The selection unit, in the described image data read for choosing the reading unit with the first area position pair The view data answered is first object data;
The drawing unit, for drawing the first object data of the selection unit selection to show the target figure Piece.
A kind of 12. electronic device, it is characterised in that including processor, memory, communication interface, and one or more programs, One or more of programs are stored in the memory, and are configured to be performed by the processor, described program bag Include for performing such as the instruction of the step in claim 6-10 any one of them methods.
A kind of 13. computer-readable recording medium, it is characterised in that computer program of the storage for electronic data interchange, its In, the computer program causes computer to perform such as claim 6-10 any one of them methods.
CN201711330384.3A 2017-12-13 2017-12-13 Electronic device, image drawing method and Related product Pending CN108040144A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711330384.3A CN108040144A (en) 2017-12-13 2017-12-13 Electronic device, image drawing method and Related product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711330384.3A CN108040144A (en) 2017-12-13 2017-12-13 Electronic device, image drawing method and Related product

Publications (1)

Publication Number Publication Date
CN108040144A true CN108040144A (en) 2018-05-15

Family

ID=62102664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711330384.3A Pending CN108040144A (en) 2017-12-13 2017-12-13 Electronic device, image drawing method and Related product

Country Status (1)

Country Link
CN (1) CN108040144A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032481A (en) * 2018-06-29 2018-12-18 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN109117240A (en) * 2018-09-25 2019-01-01 维沃移动通信有限公司 A kind of method of controlling operation thereof and mobile terminal
CN113760414A (en) * 2020-06-02 2021-12-07 北京字节跳动网络技术有限公司 Method and device for drawing graph

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080259405A1 (en) * 2007-04-17 2008-10-23 Kyocera Mita Corporation Image forming apparatus
CN101329830A (en) * 2007-06-21 2008-12-24 北京巨数数字技术开发有限公司 Method for generating special-shaped display data and special-shaped display system
CN103853729A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Page loading method and system
CN106454438A (en) * 2016-11-16 2017-02-22 腾讯科技(深圳)有限公司 Data processing method, relevant equipment and system
CN106502613A (en) * 2016-10-25 2017-03-15 武汉斗鱼网络科技有限公司 A kind of method and device for Loading Image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080259405A1 (en) * 2007-04-17 2008-10-23 Kyocera Mita Corporation Image forming apparatus
CN101329830A (en) * 2007-06-21 2008-12-24 北京巨数数字技术开发有限公司 Method for generating special-shaped display data and special-shaped display system
CN103853729A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Page loading method and system
CN106502613A (en) * 2016-10-25 2017-03-15 武汉斗鱼网络科技有限公司 A kind of method and device for Loading Image
CN106454438A (en) * 2016-11-16 2017-02-22 腾讯科技(深圳)有限公司 Data processing method, relevant equipment and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GRAYWOLF: "大家不用担心App对于X屏幕的适配,程序猿比你们想象的努力,有图才可信…", 《威锋》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109032481A (en) * 2018-06-29 2018-12-18 维沃移动通信有限公司 A kind of display control method and mobile terminal
CN109117240A (en) * 2018-09-25 2019-01-01 维沃移动通信有限公司 A kind of method of controlling operation thereof and mobile terminal
CN113760414A (en) * 2020-06-02 2021-12-07 北京字节跳动网络技术有限公司 Method and device for drawing graph
CN113760414B (en) * 2020-06-02 2023-11-28 北京字节跳动网络技术有限公司 Method and device for drawing graph

Similar Documents

Publication Publication Date Title
US9779527B2 (en) Method, terminal device and storage medium for processing image
CN107256555B (en) Image processing method, device and storage medium
EP3035283A1 (en) Image processing method and apparatus, and terminal device
CN109684980B (en) Automatic scoring method and device
US9870118B2 (en) Non-transitory storage medium encoded with computer readable information processing program, information processing apparatus, method of controlling information processing apparatus, and information processing system, capable of controlling virtual camera while grasping overall condition of virtual camera arranged in virtual space
CN103713801B (en) Image display control apparatus, image display and method for displaying image
CN104866755B (en) Setting method and device for background picture of application program unlocking interface and electronic equipment
CN108040144A (en) Electronic device, image drawing method and Related product
CN106203254A (en) A kind of adjustment is taken pictures the method and device in direction
JPWO2013046596A1 (en) Portable information processing terminal
CN108415643A (en) A kind of icon display method and terminal
CN107959759A (en) Electronic equipment, display control method and related product
CN109523609A (en) A kind of method and terminal of Edition Contains
CN109213407A (en) A kind of screenshot method and terminal device
CN109670507A (en) Image processing method, device and mobile terminal
CN108121641A (en) State information display method and relevant device
CN104580883A (en) Image processing device and image processing method
CN109544445A (en) A kind of image processing method, device and mobile terminal
CN108174086A (en) Image pickup method and Related product
CN108170214A (en) Electronic device, display control method and related product
CN108052303A (en) Electronic device, method for displaying image and Related product
CN112825040A (en) User interface display method, device, equipment and storage medium
CN108427586B (en) Using push terminal, method and the computer readable storage medium of theme
CN106775548B (en) page processing method and device
CN109542307A (en) A kind of image processing method, equipment and computer readable storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180515

RJ01 Rejection of invention patent application after publication