CN106648348A - Picture display method and apparatus - Google Patents

Picture display method and apparatus Download PDF

Info

Publication number
CN106648348A
CN106648348A CN201610830002.2A CN201610830002A CN106648348A CN 106648348 A CN106648348 A CN 106648348A CN 201610830002 A CN201610830002 A CN 201610830002A CN 106648348 A CN106648348 A CN 106648348A
Authority
CN
China
Prior art keywords
picture
viewing area
size
picture viewing
judge
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
CN201610830002.2A
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.)
TVMining Beijing Media Technology Co Ltd
Original Assignee
TVMining Beijing Media Technology 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 TVMining Beijing Media Technology Co Ltd filed Critical TVMining Beijing Media Technology Co Ltd
Priority to CN201610830002.2A priority Critical patent/CN106648348A/en
Publication of CN106648348A publication Critical patent/CN106648348A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/04842Selection of displayed objects or displayed text elements
    • 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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a picture display method and apparatus, which is used for achieving the purpose of quickly and conveniently display pictures. The method comprises the steps of receiving a picture display instruction and judging whether a picture display region corresponding to the instruction is a symmetrizable region or not; if the picture display region is the symmetrizable region, obtaining the size of a to-be-displayed picture; judging whether the size of the to-be-displayed picture is smaller than that of the picture display region or not; and if the size of the to-be-displayed picture is smaller than that of the picture display region, copying the to-be-displayed picture for one or multiple times to fill the picture display region for performing display.

Description

A kind of method and device for showing picture
Technical field
The present invention relates to technical field of internet application, more particularly to a kind of method and device for showing picture.
Background technology
APK is the abbreviation of AndroidPackage, i.e. Android installation kits.APK is similar Symbian Sis or Sisx File format.Install by performing in by the way that APK file is passed directly to into Android simulator or Android phone.apk File is packaged into an installation procedure file as sis the engineering that android sdk are compiled, and form is apk.APK file It is in fact zip forms, but suffix name is modified to apk, and after UnZip is decompressed, it can be seen that Dex files, Dex is The abbreviation of DalvikVM executes, i.e. Android Dalvik configuration processors, not the bytecode of Java ME but Dalvik bytecodes., when a program is run firstly the need of UnZip, then similar Symbian is direct like that for Android, and PE files in Windows Mobile are had any different.In APK, general viewing area is much, and just selection one is an equal amount of Picture, to fill up whole viewing area, such data volume is larger, it would be highly desirable to solve this problem.
The content of the invention
The present invention provides a kind of method and device for showing picture, to realize quickly and conveniently showing the purpose of picture.
The present invention provides a kind of method for showing picture, including:
Receive the instruction for showing picture, judge it is described instruct corresponding picture viewing area to be whether can symmetrical region;
If the picture viewing area for can symmetrical region, obtain the size of picture to be shown;
Judge the size of the picture to be shown whether less than the picture viewing area;
If the picture to be shown is smaller in size than the picture viewing area, the picture to be shown carried out once Or multiple copies, shown with filling the picture viewing area.
In an embodiment of the present invention, methods described also includes:
If the picture viewing area for can symmetrical region, judge the size of the picture to be shown whether less than institute State picture viewing area;
If the picture to be shown is smaller in size than the picture viewing area, the size of the picture to be shown entered Row expansion is processed, and is shown with filling the picture viewing area.
In an embodiment of the present invention, methods described also includes:
If the size of the picture to be shown is more than the picture viewing area, in the picture viewing area institute is shown State picture to be shown.
In an embodiment of the present invention, it is described can symmetrical region include it is at least one following:
Rectangular area, border circular areas, isosceles triangle region.
In an embodiment of the present invention, methods described also includes:
When receive user for the picture viewing area predetermined registration operation when, it is determined that receive show picture finger Order.
The present invention also provides a kind of device of display picture, including:
First judge module, for receiving the instruction for showing picture, judges that the corresponding picture viewing area of the instruction is It is no for can symmetrical region;
Acquisition module, if for the picture viewing area for can symmetrical region, obtain the size of picture to be shown;
Second judge module, for judging the size of the picture to be shown whether less than the picture viewing area;
Display module, if being smaller in size than the picture viewing area for the picture to be shown, waits to show to described Diagram piece carries out one or many duplication, is shown with filling the picture viewing area.
In an embodiment of the present invention, the display module is additionally operable to:
If the picture viewing area for can symmetrical region, judge the size of the picture to be shown whether less than institute State picture viewing area;
If the picture to be shown is smaller in size than the picture viewing area, the size of the picture to be shown entered Row expansion is processed, and is shown with filling the picture viewing area.
In an embodiment of the present invention, the display module is additionally operable to:
If the size of the picture to be shown is more than the picture viewing area, in the picture viewing area institute is shown State picture to be shown.
In an embodiment of the present invention, it is described can symmetrical region include it is at least one following:
Rectangular area, border circular areas, isosceles triangle region.
In an embodiment of the present invention, described device also includes:
Determining module, for when receive user for the picture viewing area predetermined registration operation when, it is determined that receiving Show the instruction of picture.
In embodiments of the present invention, the instruction for showing picture is received, judges that the corresponding picture viewing area of the instruction is It is no for can symmetrical region;If the picture viewing area for can symmetrical region, obtain the size of picture to be shown;Judge described Whether the size of picture to be shown is less than the picture viewing area;If the picture that is smaller in size than of the picture to be shown shows Show region, then one or many duplication is carried out to the picture to be shown, shown with filling the picture viewing area.By This is visible, and the embodiment of the present invention can be realized quickly and conveniently showing the purpose of picture.
Other features and advantages of the present invention will be illustrated in the following description, also, the partly change from specification Obtain it is clear that or being understood by implementing the present invention.The purpose of the present invention and other advantages can be by the explanations write Specifically noted structure is realizing and obtain in book, claims and accompanying drawing.
Below by drawings and Examples, technical scheme is described in further detail.
Description of the drawings
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, the reality with the present invention Applying example is used to explain the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 show in one embodiment of the invention the flow chart of the method for showing picture;
Fig. 2 show in another embodiment of the present invention the flow chart of the method for showing picture;
Fig. 3 show in one embodiment of the invention the structural representation of the device for showing picture;And
Fig. 4 show in another embodiment of the present invention the structural representation of the device for showing picture.
Specific embodiment
The preferred embodiments of the present invention are illustrated below in conjunction with accompanying drawing, it will be appreciated that preferred reality described herein Apply example and be merely to illustrate and explain the present invention, be not intended to limit the present invention.
The flow chart of the method for showing picture is illustrated in figure 1 in one embodiment of the invention, and the method can be applied in intelligence The terminals such as energy mobile phone, intelligent TV set, the method may comprise steps of S11-S15.
Step S11, receives the instruction for showing picture.
In this step, when receive user for picture viewing area predetermined registration operation when, it is determined that receiving display figure The instruction of piece.
Step S12, judge the corresponding picture viewing area of the instruction be whether can symmetrical region, if so, then continue to hold Row step S13.
In this step, can symmetrical region can be rectangular area, border circular areas, isosceles triangle region etc., the present invention Not limited to this.
Step S13, obtains the size of picture to be shown.
Step S14, judges that the size of the picture to be shown, whether less than the picture viewing area, if so, then continues Execution step S15.
Step S15, to the picture to be shown one or many duplication is carried out, and is carried out with filling the picture viewing area Show.
In embodiments of the present invention, the instruction for showing picture is received, judges that the corresponding picture viewing area of the instruction is It is no for can symmetrical region;If the picture viewing area for can symmetrical region, obtain the size of picture to be shown;Judge described Whether the size of picture to be shown is less than the picture viewing area;If the picture that is smaller in size than of the picture to be shown shows Show region, then one or many duplication is carried out to the picture to be shown, shown with filling the picture viewing area.By This is visible, and the embodiment of the present invention can be realized quickly and conveniently showing the purpose of picture.
In above step S12, if the picture viewing area for can symmetrical region, determine whether described to wait to show Whether the size of diagram piece is less than the picture viewing area;If the picture to be shown is smaller in size than the picture viewing area Domain, then be enlarged process to the size of the picture to be shown, is shown with filling the picture viewing area.Conversely, If the size of the picture to be shown is more than the picture viewing area, show described to be shown in the picture viewing area Picture.
The method for showing picture of the invention is discussed in detail below by a specific embodiment realizes process.Such as Fig. 2 The flow chart of the method for showing picture is shown in another embodiment of the present invention, and the method can be applied in smart mobile phone, intelligence The terminals such as television set, the method may comprise steps of S21-S26.
Step S21, when receive user for picture viewing area predetermined registration operation when, it is determined that receive showing picture Instruction.
Step S22, judge the corresponding picture viewing area of the instruction be whether can symmetrical region, if so, then continue to hold Row step S23;Conversely, if it is not, then terminating this flow process.
Step S23, obtains the size of picture to be shown, continues executing with step S24.
Step S24, judges that the size of the picture to be shown, whether less than the picture viewing area, if so, then continues Execution step S25;Conversely, if it is not, then continuing executing with step S26.
Step S25, to the picture to be shown one or many duplication is carried out, and is carried out with filling the picture viewing area Show.
In this step, if the picture viewing area for can symmetrical region, and the size of the picture to be shown is little In the picture viewing area, then process is enlarged to the size of the picture to be shown, to fill the picture viewing area Domain is shown.
Step S26, in the picture viewing area picture to be shown is shown.
The embodiment of the present invention can be realized quickly and conveniently showing the purpose of picture.
It should be noted that in actual applications, above-mentioned all optional embodiments can be with any by the way of combining Combination, forms the alternative embodiment of the present invention, and this is no longer going to repeat them.
Corresponding to the method for the display picture in above-described embodiment, the present invention also provides a kind of device of display picture.Such as Fig. 3 show in one embodiment of the invention the structural representation of the device for showing picture, including:
First judge module 31, for receiving the instruction for showing picture, judges the corresponding picture viewing area of the instruction Whether be can symmetrical region;
Acquisition module 32, if for the picture viewing area for can symmetrical region, obtain the size of picture to be shown;
Second judge module 33, for judging the size of the picture to be shown whether less than the picture viewing area;
Display module 34, if being smaller in size than the picture viewing area for the picture to be shown, treats to described Show that picture carries out one or many duplication, shown with filling the picture viewing area.
In an embodiment of the present invention, above-mentioned display module 34 is additionally operable to:
If the picture viewing area for can symmetrical region, judge the size of the picture to be shown whether less than institute State picture viewing area;
If the picture to be shown is smaller in size than the picture viewing area, the size of the picture to be shown entered Row expansion is processed, and is shown with filling the picture viewing area.
In an embodiment of the present invention, above-mentioned display module 34 is additionally operable to:
If the size of the picture to be shown is more than the picture viewing area, in the picture viewing area institute is shown State picture to be shown.
In an embodiment of the present invention, it is described can symmetrical region include it is at least one following:
Rectangular area, border circular areas, isosceles triangle region.
In an embodiment of the present invention, as shown in figure 4, the device that figure 3 above shows can also include:
Determining module 41, for when receive user for the picture viewing area predetermined registration operation when, it is determined that receive To the instruction for showing picture.
The said apparatus of the embodiment of the present invention:The instruction for showing picture is received, judges that the corresponding picture of the instruction shows Whether region is can symmetrical region;If the picture viewing area for can symmetrical region, obtain the size of picture to be shown;Sentence Whether the size of the disconnected picture to be shown is less than the picture viewing area;If being smaller in size than for the picture to be shown is described Picture viewing area, then carry out one or many duplication to the picture to be shown, is carried out with filling the picture viewing area Show.As can be seen here, the embodiment of the present invention can be realized quickly and conveniently showing the purpose of picture.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or with reference to the reality in terms of software and hardware Apply the form of example.And, the present invention can be adopted and wherein include the computer of computer usable program code at one or more The shape of the computer program implemented in usable storage medium (including but not limited to magnetic disc store and optical memory etc.) Formula.
The present invention is the flow process with reference to method according to embodiments of the present invention, equipment (system) and computer program Figure and/or block diagram are describing.It should be understood that can be by computer program instructions flowchart and/or each stream in block diagram The combination of journey and/or square frame and flow chart and/or the flow process in block diagram and/or square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of specifying in present one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory is produced to be included referring to Make the manufacture of device, the command device realize in one flow process of flow chart or one square frame of multiple flow processs and/or block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented process, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow process of flow chart or multiple flow processs and/or block diagram one The step of function of specifying in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out the essence of various changes and modification without deviating from the present invention to the present invention God and scope.So, if these modifications of the present invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (10)

1. it is a kind of show picture method, it is characterised in that include:
Receive the instruction for showing picture, judge it is described instruct corresponding picture viewing area to be whether can symmetrical region;
If the picture viewing area for can symmetrical region, obtain the size of picture to be shown;
Judge the size of the picture to be shown whether less than the picture viewing area;
If the picture to be shown is smaller in size than the picture viewing area, the picture to be shown is carried out once or many Secondary duplication, is shown with filling the picture viewing area.
2. method according to claim 1, it is characterised in that also include:
If the picture viewing area for can symmetrical region, judge the size of the picture to be shown whether less than the figure Piece viewing area;
If the picture to be shown is smaller in size than the picture viewing area, the size of the picture to be shown expanded It is big to process, shown with filling the picture viewing area.
3. method according to claim 2, it is characterised in that also include:
If the size of the picture to be shown is more than the picture viewing area, in the picture viewing area described treating is shown Show picture.
4. the method according to any one of claim 1-3, it is characterised in that it is described can symmetrical region include it is following at least One of:
Rectangular area, border circular areas, isosceles triangle region.
5. method according to claim 1, it is characterised in that also include:
When receive user for the picture viewing area predetermined registration operation when, it is determined that receive show picture instruction.
6. it is a kind of show picture device, it is characterised in that include:
Whether the first judge module, for receiving the instruction for showing picture, judge described to instruct the corresponding picture viewing area to be Can symmetrical region;
Acquisition module, if for the picture viewing area for can symmetrical region, obtain the size of picture to be shown;
Second judge module, for judging the size of the picture to be shown whether less than the picture viewing area;
Display module, if being smaller in size than the picture viewing area for the picture to be shown, to the figure to be shown Piece carries out one or many duplication, is shown with filling the picture viewing area.
7. device according to claim 6, it is characterised in that the display module is additionally operable to:
If the picture viewing area for can symmetrical region, judge the size of the picture to be shown whether less than the figure Piece viewing area;
If the picture to be shown is smaller in size than the picture viewing area, the size of the picture to be shown expanded It is big to process, shown with filling the picture viewing area.
8. device according to claim 7, it is characterised in that the display module is additionally operable to:
If the size of the picture to be shown is more than the picture viewing area, in the picture viewing area described treating is shown Show picture.
9. the device according to any one of claim 6-8, it is characterised in that it is described can symmetrical region include it is following at least One of:
Rectangular area, border circular areas, isosceles triangle region.
10. device according to claim 6, it is characterised in that also include:
Determining module, for when receive user for the picture viewing area predetermined registration operation when, it is determined that receiving display The instruction of picture.
CN201610830002.2A 2016-09-18 2016-09-18 Picture display method and apparatus Pending CN106648348A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610830002.2A CN106648348A (en) 2016-09-18 2016-09-18 Picture display method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610830002.2A CN106648348A (en) 2016-09-18 2016-09-18 Picture display method and apparatus

Publications (1)

Publication Number Publication Date
CN106648348A true CN106648348A (en) 2017-05-10

Family

ID=58852338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610830002.2A Pending CN106648348A (en) 2016-09-18 2016-09-18 Picture display method and apparatus

Country Status (1)

Country Link
CN (1) CN106648348A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7088870B2 (en) * 2003-02-24 2006-08-08 Microsoft Corporation Image region filling by example-based tiling
CN1904827A (en) * 2005-07-27 2007-01-31 三星电子株式会社 Method of displaying wallpaper and apparatus for displaying wallpaper
US20080165200A1 (en) * 2007-01-05 2008-07-10 Raymond Chow Hardware Background Tile Generation
CN102253818A (en) * 2011-06-27 2011-11-23 深圳市茁壮网络股份有限公司 Background picture display method and device
CN102622223A (en) * 2011-02-10 2012-08-01 微软公司 Directly assigning desktop backgrounds
CN102799420A (en) * 2011-05-23 2012-11-28 腾讯科技(深圳)有限公司 Client skin editing method and skin editor
CN104463818A (en) * 2013-09-25 2015-03-25 北大方正集团有限公司 Method and system for fast drawing background

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7088870B2 (en) * 2003-02-24 2006-08-08 Microsoft Corporation Image region filling by example-based tiling
CN1904827A (en) * 2005-07-27 2007-01-31 三星电子株式会社 Method of displaying wallpaper and apparatus for displaying wallpaper
US20080165200A1 (en) * 2007-01-05 2008-07-10 Raymond Chow Hardware Background Tile Generation
CN102622223A (en) * 2011-02-10 2012-08-01 微软公司 Directly assigning desktop backgrounds
CN102799420A (en) * 2011-05-23 2012-11-28 腾讯科技(深圳)有限公司 Client skin editing method and skin editor
CN102799420B (en) * 2011-05-23 2015-12-02 腾讯科技(深圳)有限公司 A kind of client skin edit methods and skin editing machine
CN102253818A (en) * 2011-06-27 2011-11-23 深圳市茁壮网络股份有限公司 Background picture display method and device
CN104463818A (en) * 2013-09-25 2015-03-25 北大方正集团有限公司 Method and system for fast drawing background

Similar Documents

Publication Publication Date Title
US9569184B2 (en) Generating native code from intermediate language code for an application
US8799477B2 (en) Hypervisor selection for hosting a virtual machine image
CN105630543A (en) Application cold start acceleration method and apparatus
US20150220496A1 (en) Dynamic sprite based theme switching
CN105190552A (en) Systems and methods of executing multiple hypervisors
CN109213607B (en) Multithreading rendering method and device
US20170147478A1 (en) Generic language application programming interface interpreter
CN104778075B (en) The method and apparatus of Java layers of API of native layers of calling in android system
US8479172B2 (en) Virtual machine testing
WO2015161809A1 (en) Picture splitting method and apparatus, and picture loading method and apparatus
US20180203726A1 (en) Virtual machine migration method and apparatus
AU2016378425B2 (en) Application program running method and apparatus
CN106775678A (en) A kind of method and device of page jump
US10593010B2 (en) Techniques for capturing and executing graphics processing operations
CN112650521B (en) Software development kit SDK thermal restoration method and device and electronic equipment
CN106648348A (en) Picture display method and apparatus
US10120661B2 (en) Multi-flavored software execution from a singular code base
KR20130108952A (en) Implementation method of pip by using separate application package on android platform
CN105389386A (en) Search result based pagination processing method and apparatus
CN114090172B (en) Cross-system widget multiplexing method and device
CN112882921B (en) Fault simulation method and device
CN106210031A (en) Service execution method, device, client and server
CN111984543A (en) Instruction testing method, device and system
CN105574181B (en) A kind of method and apparatus generating advertising map
CN106796615A (en) Use the parallel processing of Self-absorption Correction Factor

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: 20170510

RJ01 Rejection of invention patent application after publication