CN106325664A - Image display method and apparatus - Google Patents

Image display method and apparatus Download PDF

Info

Publication number
CN106325664A
CN106325664A CN201510382107.1A CN201510382107A CN106325664A CN 106325664 A CN106325664 A CN 106325664A CN 201510382107 A CN201510382107 A CN 201510382107A CN 106325664 A CN106325664 A CN 106325664A
Authority
CN
China
Prior art keywords
image
display unit
image display
predetermined number
idsplay order
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
CN201510382107.1A
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.)
Guangzhou Huaduo Network Technology Co Ltd
Original Assignee
Guangzhou Huaduo Network 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 Guangzhou Huaduo Network Technology Co Ltd filed Critical Guangzhou Huaduo Network Technology Co Ltd
Priority to CN201510382107.1A priority Critical patent/CN106325664A/en
Publication of CN106325664A publication Critical patent/CN106325664A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The present invention discloses an image display method and apparatus, belonging to the technical field of image processing. According to the method, an image corresponding to an image display instruction is loaded by using a first image display component of a preset number of image display components, a previous image and a latter image of the image corresponding to the image display instruction are respectively loaded by using a second image display component and a third image display component of the preset number of image display components, and the image loaded by the first image display component is displayed; and when an image switching operation is detected, arrangement positions of the preset number of image display components are updated according to a switching direction of the image switching operation, the image display component in an assigned position is determined according to the updated arrangement positions of the preset number of image display components, and the image loaded by the image display component in the assigned position is displayed. All images can be displayed by using the preset number of image display components, so that the memory space is saved.

Description

Method for displaying image and device
Technical field
The present invention relates to technical field of image processing, particularly to a kind of method for displaying image and device.
Background technology
Along with developing rapidly of science and technology, the function that terminal can be provided by gets more and more, and wherein, image function is made Increasingly receive publicity for weighing the key factor of terminal capabilities.And along with the increase of terminal storage space, very Multi-terminal user can store a lot of image in terminal, therefore, how to be quickly carried out image show by Gradually become the focus of image function research and development.
A kind of method for displaying image provided in correlation technique is based primarily upon image display unit to be carried out, when to figure When showing as the image in list, terminal can be one image display unit of every image creation, and Load image in each image display unit, to show image.
During realizing the present invention, inventor finds that correlation technique at least there is problems in that
When image is shown, need for every image creation image display unit, when amount of images is more, Substantial amounts of image display unit can be created, thus occupy substantial amounts of memory headroom, cause the wave of memory headroom Take.
Summary of the invention
In order to solve problem of the prior art, embodiments provide a kind of method for displaying image and device. Described technical scheme is as follows:
First aspect, it is provided that a kind of method for displaying image, described method includes:
When image idsplay order being detected, create the image display unit of predetermined number, described predetermined number Image display unit with first order arrangement;
By the first image display unit in the image display unit of predetermined number, load described image and show and refer to The image that order is corresponding, described first image display unit is the image display unit being in and specifying position;
By the second image display unit in the image display unit of predetermined number and the 3rd image display unit, Load previous image of image corresponding to described image idsplay order and a rear image respectively;
Show the image that described first image display unit is loaded;
When image handover operation being detected, according to the switching direction of described image handover operation, update described The arrangement position of the image display unit of predetermined number;
The arrangement position after image display unit renewal according to described predetermined number, determines and is currently at appointment The image display unit of position;
The image specifying the image display unit of position to be loaded it is currently at described in display.
In conjunction with first aspect, in the first possible implementation of first aspect, described in pass through present count Second image display unit and the 3rd image display unit in the image display unit of amount, load described figure respectively Before previous image of the image that picture idsplay order is corresponding and a rear image, also include:
According to the image that described image idsplay order is corresponding, obtain image list;
Obtain previous image of the image that described in described image list, image idsplay order is corresponding and latter one Image.
In conjunction with the first possible implementation of first aspect, the realization that the second in first aspect is possible In mode, previous image of the image that described in the described image list of described acquisition, image idsplay order is corresponding With a rear image, including:
Determine the image identification that image corresponding with described image idsplay order in described image list is adjacent;
According to described adjacent image identification, obtain previous figure of image corresponding to described image idsplay order Picture and a rear image.
In conjunction with first aspect, in the third possible implementation of first aspect, described according to described figure As the switching direction of handover operation, update the arrangement position of the image display unit of described predetermined number, including:
When the switching direction of described image handover operation is first direction, by described first image display unit And the 4th image display unit move a unit length to described first direction, will be located in first direction edge On image display unit move to the edge of second direction, described unit length is an image display group The width of part, described 4th image display unit is that described first image display unit owns in a second direction Image display unit, described first direction and described second direction are rightabout.
In conjunction with first aspect, in the 4th kind of possible implementation of first aspect, described according to described figure As the switching direction of handover operation, update the arrangement position of the image display unit of described predetermined number, including:
When the switching direction of described image handover operation is second direction, by described first image display unit And the 5th image display unit move a unit length to described second direction, will be located in second direction edge On image display unit move to the edge of first direction, described unit length is an image display group The width of part, described 5th image display unit is that described second image display unit owns in a first direction Image display unit, described first direction and described second direction are rightabout.
Second aspect, it is provided that a kind of image display device, described device includes:
Creation module, for when image idsplay order being detected, creates the image display unit of predetermined number, The image display unit of described predetermined number is with the first order arrangement;
First load-on module, is used for by the first image display unit in the image display unit of predetermined number, Loading the image that described image idsplay order is corresponding, described first image display unit is to be in appointment position Image display unit;
Second load-on module, for by the second image display unit in the image display unit of predetermined number and 3rd image display unit, load respectively image corresponding to described image idsplay order previous image and after One image;
First display module, for showing the image that described first image display unit is loaded;
More new module, for when detecting image handover operation, according to the switching of described image handover operation Direction, updates the arrangement position of the image display unit of described predetermined number;
Determine module, the arrangement position after the image display unit according to described predetermined number updates, really Surely the image display unit specifying position it is currently at;
Second display module, is currently at described in show and specifies the image display unit of position to be loaded Image.
In conjunction with second aspect, in the first possible implementation of second aspect, described device also includes:
First acquisition module, for the image corresponding according to described image idsplay order, obtains image list;
Second acquisition module, for obtaining image that described in described image list, image idsplay order is corresponding Previous image and a rear image.
In conjunction with the first possible implementation of second aspect, the realization that the second in second aspect is possible In mode, described second acquisition module, it is used for determining in described image list and described image idsplay order pair The image identification that the image answered is adjacent;According to described adjacent image identification, obtain described image idsplay order Previous image of corresponding image and a rear image.
In conjunction with second aspect, in the third possible implementation of second aspect, described more new module, For when the switching direction of described image handover operation is first direction, by described first image display unit And the 4th image display unit move a unit length to described first direction, will be located in first direction edge On image display unit move to the edge of second direction, described unit length is an image display group The width of part, described 4th image display unit is that described first image display unit owns in a second direction Image display unit, described first direction and described second direction are rightabout.
In conjunction with second aspect, in the 4th kind of possible implementation of second aspect, described more new module, For when the switching direction of described image handover operation is second direction, by described first image display unit And the 5th image display unit move a unit length to described second direction, will be located in second direction edge On image display unit move to the edge of first direction, described unit length is an image display group The width of part, described 5th image display unit is that described second image display unit owns in a first direction Image display unit, described first direction and described second direction are rightabout.
The technical scheme that the embodiment of the present invention provides has the benefit that
By creating the image display unit of predetermined number, by the image display unit of predetermined number first Image display unit, the image that load image idsplay order is corresponding, by the image display unit of predetermined number In the second image display unit and the 3rd image display unit, the image that respectively load image idsplay order is corresponding Previous image and a rear image, show the image that the first image display unit is loaded.When detecting During image handover operation, according to the switching direction of image handover operation, update the image display group of predetermined number The arrangement position of part, the arrangement position after updating according to the image display unit of predetermined number, determine current place In the image display unit of appointment position, display is currently at specifies the image display unit of position to be loaded Image.Owing to just all images can be shown by the image display unit of predetermined number, thus not Need for every image creation image display unit, therefore, it is possible to save memory headroom.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, institute in embodiment being described below The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only the present invention Some embodiments, for those of ordinary skill in the art, on the premise of not paying creative work, Other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is a kind of method for displaying image flow chart that one embodiment of the invention provides;
Fig. 2 is a kind of method for displaying image flow chart that another embodiment of the present invention provides;
Fig. 3 a is the arrangement schematic diagram of a kind of image display unit that another embodiment of the present invention provides;
Fig. 3 b is the arrangement schematic diagram of a kind of image display unit that another embodiment of the present invention provides;
Fig. 3 c is the arrangement schematic diagram of a kind of image display unit that another embodiment of the present invention provides;
Fig. 4 is the structural representation of a kind of image display device that another embodiment of the present invention provides;
Fig. 5 is the structural representation of a kind of image display device that another embodiment of the present invention provides;
Fig. 6 is the block diagram of a kind of terminal that another embodiment of the present invention provides.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing to the present invention Embodiment is described in further detail.
Embodiments providing a kind of method for displaying image, the method is applied to terminal.See Fig. 1, this The method flow that embodiment provides includes:
101, when image idsplay order being detected, the image display unit of predetermined number, predetermined number are created Image display unit with first order arrangement.
102, by the first image display unit in the image display unit of predetermined number, load image shows and refers to The image that order is corresponding, the first image display unit is the image display unit being in and specifying position.
103, by the second image display unit in the image display unit of predetermined number and the 3rd image display group Part, previous image of the image that difference load image idsplay order is corresponding and a rear image.
104, the image that the first image display unit is loaded is shown.
105, when image handover operation being detected, according to the switching direction of image handover operation, update and preset The arrangement position of the image display unit of quantity.
106, the arrangement position after updating according to the image display unit of predetermined number, determines and is currently at appointment The image display unit of position.
107, display is currently at the image specifying the image display unit of position to be loaded.
The method that the embodiment of the present invention provides, by creating the image display unit of predetermined number, by presetting First image display unit in the image display unit of quantity, the image that load image idsplay order is corresponding is logical Cross the second image display unit and the 3rd image display unit in the image display unit of predetermined number, add respectively Carry previous image of image corresponding to image idsplay order and a rear image, show the first image display group The image that part is loaded.When image handover operation being detected, according to the switching direction of image handover operation, Update the arrangement position of the image display unit of predetermined number, update according to the image display unit of predetermined number After arrangement position, determine be currently at specify position image display unit, display be currently at specific bit The image that the image display unit put is loaded.Due to just can be right by the image display unit of predetermined number All images show, thus are not necessary for every image creation image display unit, therefore, it is possible to joint Save memory headroom.
As a kind of alternative embodiment, by the second image display unit in the image display unit of predetermined number With the 3rd image display unit, respectively previous the image and rear of the image that load image idsplay order is corresponding Before opening image, also include:
According to the image that image idsplay order is corresponding, obtain image list;
Obtain previous image of the image that image idsplay order is corresponding in image list and a rear image.
As a kind of alternative embodiment, obtain previous of the image that in image list, image idsplay order is corresponding Image and a rear image, including:
Determine the image identification that image corresponding with image idsplay order in image list is adjacent;
According to adjacent image identification, obtain previous the image and rear of image corresponding to image idsplay order Open image.
As a kind of alternative embodiment, according to the switching direction of image handover operation, update the figure of predetermined number The arrangement position of picture display module, including:
When the switching direction of image handover operation is first direction, by the first image display unit and the 4th figure As display module moves a unit length to first direction, the image that will be located on first direction edge shows Assembly moves to the edge of second direction, and unit length is the width of an image display unit, the 4th figure As display module is the first the most all of image display unit of image display unit, first direction It is rightabout with second direction.
As a kind of alternative embodiment, according to the switching direction of image handover operation, update the figure of predetermined number The arrangement position of picture display module, including:
When the switching direction of image handover operation is second direction, by the first image display unit and the 5th figure As display module moves a unit length to second direction, the image that will be located on second direction edge shows Assembly moves to the edge of first direction, and unit length is the width of an image display unit, the 5th figure As display module is the second the most all of image display unit of image display unit, first direction It is rightabout with second direction.
Above-mentioned all optional technical schemes, can use and arbitrarily combine the alternative embodiment forming the present invention, This repeats the most one by one.
Embodiments providing a kind of method for displaying image, the method is applied to terminal.See Fig. 2, this The method flow that embodiment provides includes:
201, when image idsplay order being detected, the image display unit of predetermined number, predetermined number are created Image display unit with first order arrangement.
When certain during user needs browse application image, user can be by clicking on the friendship relevant to this image Element mutually, thus input picture idsplay order, this is not especially limited by the present embodiment.Such as, with user As a example by browsing chat record.User can be by clicking on the thumbnail of any one image in chat record, with defeated Enter image idsplay order.Wherein, image idsplay order can including, user puts the image identification of clicked on image, The value of predetermined number can be set according to demand, and this is not especially limited by the present embodiment.
Image display unit can be UIImageView assembly, the present embodiment not shape to image display unit Formula makees concrete restriction.Further, since image display unit can be loaded by container assemblies, therefore, exist While creating UIImageView assembly, it is also possible to create UIScrollView assembly as UIImageView The container of assembly, this is not especially limited by the present embodiment.The image display unit of predetermined number is being created After, can arrange according to the first order of acquiescence after creating, this is not especially limited by the present embodiment.Example As, if image display unit is to arrange with horizontal direction, then the image display unit of predetermined number is arranged Schematic diagram after row can be as shown in Figure 3 a.In fig. 3 a, mobile phone one screen is only able to display an image display unit, UIScrollView assembly, as container, can load 3 UIImageView on UIScrollView assembly Assembly.
202, by the first image display unit in the image display unit of predetermined number, load image shows and refers to The image that order is corresponding, the first image display unit is the image display unit being in and specifying position.
Owing to when image idsplay order being detected, illustrating that user needs to show that this image idsplay order is corresponding Image, and each image display unit can only load an image, therefore, when the image of predetermined number shows When assembly is multiple, need from the image display unit of predetermined number, select the first image display unit, with The image that load image idsplay order is corresponding.
The present embodiment is not to the mode selecting the first image display unit from the image display unit of predetermined number Make concrete restriction, include but not limited to: the centre position after being arranged by the image display unit of predetermined number is made For specifying position, using image display unit in an intermediate position as the first image display unit.Such as, As a example by the number of predetermined number is 3, thus can will be in deputy image display unit as first Image display unit.As a example by the number of predetermined number is 4, thus can will be in second or the 3rd Image display unit is as the first image display unit.
203, according to the image that image idsplay order is corresponding, image list is obtained.
From above-mentioned steps 201, image idsplay order can include the image identification of the clicked on image of user, And image identification generally falls into a certain image list, therefore, according to the image identification in image idsplay order, The image list comprising this image identification can be obtained.Wherein, image list can include at least one image identification, This is not especially limited by the present embodiment.
204, previous image of the image that image idsplay order is corresponding in image list and a rear figure are obtained Picture.
The image corresponding due to image idsplay order all has adjacent image in image list, and to image After the image that idsplay order is corresponding shows, the image that this image is adjacent is likely to be also required to be shown, Therefore, in addition to obtaining the image that image idsplay order is corresponding, it is also possible to obtain image in image list and show Showing previous image of the image of instruction correspondence and a rear image, this is not especially limited by the present embodiment.
Wherein, owing to image list comprising image identification, therefore, can first determine in image list with image The image identification that image that idsplay order is corresponding is adjacent, according to adjacent image identification, determines in image list The previous image identification of the image that image idsplay order is corresponding and later image identification, thus according to determining Image identification, obtain previous image and a rear image, this reality of image corresponding to image idsplay order Execute example this is not especially limited.
It should be noted that when predetermined number is 3, it is corresponding that this step can only obtain image idsplay order Previous image of image and a rear image.When predetermined number is more than 3, also can obtain image and show and refer to The more adjacent image of image that order is corresponding, this is not especially limited by the present embodiment.Such as, with present count As a example by amount is 5, if image corresponding to image idsplay order is the 10th image in image list, then except Obtaining outside the 9th and the 11st image, slip can also obtain the 8th and the 12nd image.
205, by the second image display unit in the image display unit of predetermined number and the 3rd image display group Part, previous image of the image that difference load image idsplay order is corresponding and a rear image.
Wherein, the second image display unit can be predetermined number image display unit in come the first image Image display unit before display module, the 3rd image display unit can be that the image of predetermined number shows Coming the image display unit after the first image display unit in assembly, this is the most specifically limited by the present embodiment Fixed.By second image display unit the most adjacent with the first image display unit and the 3rd image display unit, Previous image and a rear image of image that can be corresponding to image idsplay order load.
It should be noted that when predetermined number is more than 3, except the second image display unit and the 3rd image Outside display module, may also include in the image display unit of predetermined number and the first image display unit phase Other adjacent image display unit.Therefore, this step is except allowing the second image display unit and the 3rd image show Show outside previous image and a rear image of the assembly image that load image idsplay order is corresponding respectively, also Other image display unit can be allowed to load more image.Such as, with predetermined number for 5, image shows and refers to As a example by the image of order correspondence is the 10th image in image list, except allowing the 3rd image display unit load Outside 10th image, it is also possible to loaded respectively by the first image display unit, the second image display unit 8, the 9th image, by the 4th image display unit, the 5th image display unit load respectively the 11st, 12nd image.
206, the image that the first image display unit is loaded is shown.
The mode showing image that the first image display unit is loaded specifically is not limited by the present embodiment, bag Include but be not limited to: according to the size of image display unit, show the image that the first image display unit is loaded.
207, when image handover operation being detected, according to the switching direction of image handover operation, update and preset The arrangement position of the image display unit of quantity.
Owing to the switching direction of image handover operation can be above-below direction or left and right directions, no matter any prescription To, it is all two kinds of contrary directions in group, therefore, can be according to two kinds of contrary switching directions to predetermined number The arrangement position of image display unit be updated.Based on foregoing, the present embodiment is not to basis The switching direction of image handover operation, the mode of the arrangement position updating the image display unit of predetermined number is made Concrete restriction, includes but not limited to: when the switching direction of image handover operation is first direction, by first Image display unit and the 4th image display unit move a unit length to first direction, will be located in first Image display unit on edge, direction moves to the edge of second direction, and unit length is that an image shows Show that the width of assembly, the 4th image display unit are the first the most all of figure of image display unit As display module, first direction and second direction are rightabout.
When the switching direction of image handover operation is second direction, by the first image display unit and the 5th figure As display module moves a unit length to second direction, the image that will be located on second direction edge shows Assembly moves to the edge of first direction, and unit length is the width of an image display unit, the 5th figure As display module is the second the most all of image display unit of image display unit, first direction It is rightabout with second direction.
Such as, with first direction as right direction, second direction is left direction, as a example by predetermined number is 3.When When the switching direction of image handover operation is right direction, the first image display unit and the first image can be shown Second image display unit on the assembly left side moves right a unit length, will be in the 3rd figure of right hand edge As display module moves to left hand edge, updating the image display unit after arrangement position can be as shown in Figure 3 b.
When the switching direction of image handover operation is left direction, can be by the first image display unit and the first figure As the 3rd image display unit on the right of display module is moved to the left a unit length, left hand edge will be in Second image display unit moves to right hand edge, and updating the image display unit after arrangement position can be such as Fig. 3 c institute Show.
If predetermined number is 5, when the switching direction of image handover operation is right direction, the first image can be shown Show that assembly and the first all of image display unit in the image display unit left side move right a unit length, By in addition to the image display unit being positioned at right hand edge, on the right of the first image display unit, all of image shows Assembly moves right a unit length, moves the image display unit being in right hand edge to left hand edge.
When the switching direction of image handover operation is left direction, can be by the first image display unit and the first figure As image display unit all of on the right of display module is moved to the left a unit length, will be except being positioned at left hand edge Image display unit outside, the first all of image display unit in the image display unit left side is moved to the left one Individual unit length, moves the image display unit being in left hand edge to left hand edge.
It should be noted that in the related, user is browsing pictures in vertical direction.And In the present embodiment, owing to being not intended to the switching direction of image handover operation, user both can select vertically Browsing pictures on direction, it is also possible to select browsing pictures in the horizontal direction.
Further, since when handover operation being detected, be that the arrangement position to image display unit is updated, According to the arrangement position of after image display module, display is in specifies the image display unit of position to add The image carried, rather than in present image display module, again load view such that it is able to reduce disappearing of resource Consumption.Such as, as a example by predetermined number is 3.If first image display unit load image 1, second Image display unit load image 2, the 3rd image display unit load image 3, currently displaying is Image 2.When image handover operation being detected for sliding to the right, illustrate that user now needs to show image 1, Then have only to move to second the first image display unit, the second image display unit is moved to the 3rd Position, moves the 3rd image display unit to first, and need not pass through the second image display unit weight New load image 1 such that it is able to reduce the consumption of resource.
208, the arrangement position after updating according to the image display unit of predetermined number, determines and is currently at appointment The image display unit of position.
According to the content in above-mentioned steps 202, it is intended that position can be the image display group of predetermined number The centre position of part.Therefore, image display unit in an intermediate position in the arrangement position after renewable is made For specifying the image display unit of position.
209, display is currently at the image specifying the image display unit of position to be loaded.
The present embodiment is not currently at the mode of the image specifying the image display unit of position to be loaded to display Making concrete restriction, detailed process refers to the content in above-mentioned steps 206, and here is omitted.
The method that the embodiment of the present invention provides, by creating the image display unit of predetermined number, by presetting First image display unit in the image display unit of quantity, the image that load image idsplay order is corresponding is logical Cross the second image display unit and the 3rd image display unit in the image display unit of predetermined number, add respectively Carry previous image of image corresponding to image idsplay order and a rear image, show the first image display group The image that part is loaded.When image handover operation being detected, according to the switching direction of image handover operation, Update the arrangement position of the image display unit of predetermined number, update according to the image display unit of predetermined number After arrangement position, determine be currently at specify position image display unit, display be currently at specific bit The image that the image display unit put is loaded.Due to just can be right by the image display unit of predetermined number All images show, thus are not necessary for every image creation image display unit, therefore, it is possible to joint Save memory headroom.
It addition, image is shown by the location updating of image display unit, it is possible to avoid image to show Show that assembly reloads image such that it is able to reduce the consumption of resource.
Embodiments providing a kind of image display device, this device is used for performing above-mentioned Fig. 1 or Fig. 2 The method for displaying image that corresponding embodiment provides.Seeing Fig. 4, this device includes:
Creation module 401, for when image idsplay order being detected, creates the image display group of predetermined number Part, the image display unit of predetermined number is with the first order arrangement;
First load-on module 402, for by the first image display group in the image display unit of predetermined number Part, the image that load image idsplay order is corresponding, the first image display unit is the image being in and specifying position Display module;
Second load-on module 403, for by the second image display unit in the image display unit of predetermined number With the 3rd image display unit, respectively previous the image and rear of the image that load image idsplay order is corresponding Open image;
First display module 404, the image loaded for display the first image display unit;
More new module 405, for when detecting image handover operation, according to the switching side of image handover operation To, update the arrangement position of the image display unit of predetermined number;
Determine module 406, the arrangement position after the image display unit according to predetermined number updates, determine It is currently at the image display unit specifying position;
Second display module 407, is currently at the figure specifying the image display unit of position to be loaded for display Picture.
As a kind of alternative embodiment, seeing Fig. 5, this device also includes:
First acquisition module 408, for the image corresponding according to image idsplay order, obtains image list;
Second acquisition module 409, is used for obtaining previous of the image that in image list, image idsplay order is corresponding Image and a rear image.
As a kind of alternative embodiment, the second acquisition module 409, it is used for determining in image list and shows with image Instruct the image identification that corresponding image is adjacent;According to adjacent image identification, obtain image idsplay order pair Previous image of the image answered and a rear image.
As a kind of alternative embodiment, more new module 405, for being the when the switching direction of image handover operation During one direction, the first image display unit and the 4th image display unit are moved a unit to first direction Length, will be located in the image display unit on first direction edge and moves to the edge of second direction, unit The width of an a length of image display unit, the 4th image display unit is that the first image display unit is All of image display unit on two directions, first direction and second direction are rightabout.
As a kind of alternative embodiment, more new module 405, for being the when the switching direction of image handover operation During two directions, the first image display unit and the 5th image display unit are moved a unit to second direction Length, will be located in the image display unit on second direction edge and moves to the edge of first direction, unit The width of an a length of image display unit, the 5th image display unit is that the second image display unit is All of image display unit on one direction, first direction and second direction are rightabout.
The device that the embodiment of the present invention provides, by creating the image display unit of predetermined number, by presetting First image display unit in the image display unit of quantity, the image that load image idsplay order is corresponding is logical Cross the second image display unit and the 3rd image display unit in the image display unit of predetermined number, add respectively Carry previous image of image corresponding to image idsplay order and a rear image, show the first image display group The image that part is loaded.When image handover operation being detected, according to the switching direction of image handover operation, Update the arrangement position of the image display unit of predetermined number, update according to the image display unit of predetermined number After arrangement position, determine be currently at specify position image display unit, display be currently at specific bit The image that the image display unit put is loaded.Due to just can be right by the image display unit of predetermined number All images show, thus are not necessary for every image creation image display unit, therefore, it is possible to joint Save memory headroom.
Fig. 6 is the block diagram according to a kind of terminal 600 shown in an exemplary embodiment.Such as, terminal 600 Can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, flat board Equipment, armarium, body-building equipment, personal digital assistant etc..
With reference to Fig. 6, terminal 600 can include following one or more assembly: processes assembly 602, memorizer 604, power supply module 606, multimedia groupware 608, audio-frequency assembly 610, I/O (Input/Output, input / output) interface 612, sensor cluster 614, and communications component 616.
Process assembly 602 and generally control the integrated operation of terminal 600, such as with display, call, number The operation being associated according to communication, camera operation and record operation.Process assembly 602 and can include one or many Individual processor 620 performs instruction, to complete all or part of step of above-mentioned method.Additionally, process Assembly 602 can include one or more module, it is simple to process between assembly 602 and other assemblies is mutual. Such as, process assembly 602 and can include multi-media module, to facilitate multimedia groupware 608 and to process assembly Mutual between 602.
Memorizer 604 is configured to store various types of data to support the operation in terminal 600.These The example of data includes any application program for operation in terminal 600 or the instruction of method, contact person Data, telephone book data, message, picture, video etc..Memorizer 604 can be by any kind of volatile Property or non-volatile memory device or combinations thereof realize, such as SRAM (Static Random Access Memory, static RAM), EEPROM (Electrically-Erasable Programmable Read-Only Memory, Electrically Erasable Read Only Memory), EPROM (Erasable Programmable Read Only Memory, Erasable Programmable Read Only Memory EPROM), PROM (Programmable Read-Only Memory, programmable read only memory), ROM (Read-Only Memory, read only memory), magnetic memory, flash memory, disk or CD.
The various assemblies that power supply module 606 is terminal 600 provide electric power.Power supply module 606 can include electricity Management system, one or more power supplys, and other generate, manage and distribute electric power phase with for terminal 600 The assembly of association.
The screen of one output interface of offer that multimedia groupware 608 is included between described terminal 600 and user Curtain.In certain embodiments, screen can include LCD (Liquid Crystal Display, liquid crystal display) With TP (Touch Panel, touch panel).If screen includes that touch panel, screen may be implemented as touching Touch screen, to receive the input signal from user.Touch panel includes that one or more touch sensor is with sense Survey the gesture on touch, slip and touch panel.Described touch sensor can not only sense touch or slide The border of action, but also detect the persistent period relevant to described touch or slide and pressure.One In a little embodiments, multimedia groupware 608 includes a front-facing camera and/or post-positioned pick-up head.When terminal 600 Being in operator scheme, during such as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can connect Multi-medium data outside Shouing.Each front-facing camera and post-positioned pick-up head can be fixing optical lens Mirror system or there is focal length and optical zoom ability.
Audio-frequency assembly 610 is configured to output and/or input audio signal.Such as, audio-frequency assembly 610 includes One MIC (Microphone, mike), when terminal 600 is in operator scheme, such as call model, note When record pattern and speech recognition mode, mike is configured to receive external audio signal.The audio frequency received Signal can be further stored at memorizer 604 or send via communications component 616.In some embodiments In, audio-frequency assembly 610 also includes a speaker, is used for exporting audio signal.
I/O interface 612 provides interface, above-mentioned peripheral interface for processing between assembly 602 and peripheral interface module Module can be keyboard, puts striking wheel, button etc..These buttons may include but be not limited to: home button, sound Amount button, start button and locking press button.
Sensor cluster 614 includes one or more sensor, for providing various aspects for terminal 600 State estimation.Such as, what sensor cluster 614 can detect terminal 600 opens/closed mode, assembly Relative localization, such as assembly is display and the keypad of terminal 600, and sensor cluster 614 is all right Detection the terminal 600 or position change of 600 1 assemblies of terminal, existence that user contacts with terminal 600 or Do not exist, terminal 600 orientation or acceleration/deceleration and the variations in temperature of terminal 600.Sensor cluster 614 can To include proximity transducer, it is configured to when there is no any physical contact object near detecting. Sensor cluster 614 can also include optical sensor, such as CMOS (Complementary Metal Oxide Semiconductor, CMOS (Complementary Metal Oxide Semiconductor)) or CCD (Charge-coupled Device, Charged Couple unit Part) imageing sensor, for using in imaging applications.In certain embodiments, this sensor cluster 614 Acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensing can also be included Device.
Communications component 616 is configured to facilitate the logical of wired or wireless mode between terminal 600 and other equipment Letter.Terminal 600 can access wireless network based on communication standard, such as WiFi, 2G or 3G, or they Combination.In one exemplary embodiment, communications component 616 receives wide from outside via broadcast channel The broadcast singal of broadcast management system or broadcast related information.In one exemplary embodiment, described communication set Part 616 also includes NFC (Near Field Communication, near-field communication) module, to promote that short distance is led to Letter.Such as, can be based on RFID (Radio Frequency Identification, RF identification) in NFC module Technology, IrDA (Infra-red Data Association, Infrared Data Association) technology, UWB (Ultra Wideband, Ultra broadband) technology, BT (Bluetooth, bluetooth) technology and other technologies realize.
In the exemplary embodiment, terminal 600 can be by one or more ASIC (Application Specific Integrated Circuit, application specific integrated circuit), DSP (Digital signal Processor, digital signal Processor), DSPD (Digital signal Processor Device, digital signal processing appts), PLD (Programmable Logic Device, PLD), FPGA) (Field Programmable Gate Array, field programmable gate array), controller, microcontroller, microprocessor or other electronic components Realize, for performing the method for displaying image that embodiment corresponding for above-mentioned Fig. 1 or Fig. 2 provides.
The terminal that the embodiment of the present invention provides, by creating the image display unit of predetermined number, by presetting First image display unit in the image display unit of quantity, the image that load image idsplay order is corresponding is logical Cross the second image display unit and the 3rd image display unit in the image display unit of predetermined number, add respectively Carry previous image of image corresponding to image idsplay order and a rear image, show the first image display group The image that part is loaded.When image handover operation being detected, according to the switching direction of image handover operation, Update the arrangement position of the image display unit of predetermined number, update according to the image display unit of predetermined number After arrangement position, determine be currently at specify position image display unit, display be currently at specific bit The image that the image display unit put is loaded.Due to just can be right by the image display unit of predetermined number All images show, thus are not necessary for every image creation image display unit, therefore, it is possible to joint Save memory headroom.
In the exemplary embodiment, a kind of non-transitory computer-readable storage medium including instruction is additionally provided Matter, such as, include the memorizer 604 of instruction, and above-mentioned instruction can be performed by the processor 620 of terminal 600 with complete Become above-mentioned method for displaying image.Such as, described non-transitory computer-readable recording medium can be ROM, RAM (Random Access Memory, random access memory), CD-ROM (Compact Disc Read-Only Memory, compact disc read-only memory), tape, floppy disk and optical data storage devices etc..
A kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is by mobile terminal Processor when performing so that mobile terminal is able to carry out a kind of method for displaying image, and described method includes:
When image idsplay order being detected, create the image display unit of predetermined number, described predetermined number Image display unit with first order arrangement;
By the first image display unit in the image display unit of predetermined number, load described image and show and refer to The image that order is corresponding, described first image display unit is the image display unit being in and specifying position;
By the second image display unit in the image display unit of predetermined number and the 3rd image display unit, Load previous image of image corresponding to described image idsplay order and a rear image respectively;
Show the image that described first image display unit is loaded;
When image handover operation being detected, according to the switching direction of described image handover operation, update described The arrangement position of the image display unit of predetermined number;
The arrangement position after image display unit renewal according to described predetermined number, determines and is currently at appointment The image display unit of position;
The image specifying the image display unit of position to be loaded it is currently at described in display.
The non-transitory computer-readable recording medium that the embodiment of the present invention provides, by creating predetermined number Image display unit, by the first image display unit in the image display unit of predetermined number, load image The image that idsplay order is corresponding, by the second image display unit in the image display unit of predetermined number and Three image display unit, previous image of the image that difference load image idsplay order is corresponding and a rear figure Picture, shows the image that the first image display unit is loaded.When image handover operation being detected, according to figure As the switching direction of handover operation, update the arrangement position of the image display unit of predetermined number, according to presetting Arrangement position after the image display unit renewal of quantity, determines and is currently at the image display group specifying position Part, display is currently at the image specifying the image display unit of position to be loaded.Owing to passing through predetermined number Image display unit just all images can be shown, thus be not necessary for every image creation image Display module, therefore, it is possible to save memory headroom.
It should be understood that the image display device that above-described embodiment provides is when showing image, only with above-mentioned The division of each functional module is illustrated, and in actual application, can above-mentioned functions be divided as desired Join and completed by different functional modules, the internal structure of device will be divided into different functional modules, with complete Become all or part of function described above.It addition, the image display device of above-described embodiment offer and figure As display packing embodiment belongs to same design, it implements process and refers to embodiment of the method, the most no longer Repeat.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can be passed through Hardware completes, it is also possible to instructing relevant hardware by program and complete, described program can be stored in In a kind of computer-readable recording medium, storage medium mentioned above can be read only memory, disk or CD etc..
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all the present invention's Within spirit and principle, any modification, equivalent substitution and improvement etc. made, should be included in the present invention's Within protection domain.

Claims (10)

1. a method for displaying image, it is characterised in that described method includes:
When image idsplay order being detected, create the image display unit of predetermined number, described predetermined number Image display unit with first order arrangement;
By the first image display unit in the image display unit of predetermined number, load described image and show and refer to The image that order is corresponding, described first image display unit is the image display unit being in and specifying position;
By the second image display unit in the image display unit of predetermined number and the 3rd image display unit, Load previous image of image corresponding to described image idsplay order and a rear image respectively;
Show the image that described first image display unit is loaded;
When image handover operation being detected, according to the switching direction of described image handover operation, update described The arrangement position of the image display unit of predetermined number;
The arrangement position after image display unit renewal according to described predetermined number, determines and is currently at appointment The image display unit of position;
The image specifying the image display unit of position to be loaded it is currently at described in display.
Method the most according to claim 1, it is characterised in that described aobvious by the image of predetermined number Show the second image display unit and the 3rd image display unit in assembly, load described image idsplay order respectively Before previous image of corresponding image and a rear image, also include:
According to the image that described image idsplay order is corresponding, obtain image list;
Obtain previous image of the image that described in described image list, image idsplay order is corresponding and latter one Image.
Method the most according to claim 2, it is characterised in that institute in the described image list of described acquisition State previous image of image corresponding to image idsplay order and a rear image, including:
Determine the image identification that image corresponding with described image idsplay order in described image list is adjacent;
According to described adjacent image identification, obtain previous figure of image corresponding to described image idsplay order Picture and a rear image.
Method the most according to claim 1, it is characterised in that described according to described image handover operation Switching direction, update the arrangement position of the image display unit of described predetermined number, including:
When the switching direction of described image handover operation is first direction, by described first image display unit And the 4th image display unit move a unit length to described first direction, will be located in first direction edge On image display unit move to the edge of second direction, described unit length is an image display group The width of part, described 4th image display unit is that described first image display unit owns in a second direction Image display unit, described first direction and described second direction are rightabout.
Method the most according to claim 1, it is characterised in that described according to described image handover operation Switching direction, update the arrangement position of the image display unit of described predetermined number, including:
When the switching direction of described image handover operation is second direction, by described first image display unit And the 5th image display unit move a unit length to described second direction, will be located in second direction edge On image display unit move to the edge of first direction, described unit length is an image display group The width of part, described 5th image display unit is that described second image display unit owns in a first direction Image display unit, described first direction and described second direction are rightabout.
6. an image display device, it is characterised in that described device includes:
Creation module, for when image idsplay order being detected, creates the image display unit of predetermined number, The image display unit of described predetermined number is with the first order arrangement;
First load-on module, is used for by the first image display unit in the image display unit of predetermined number, Loading the image that described image idsplay order is corresponding, described first image display unit is to be in appointment position Image display unit;
Second load-on module, for by the second image display unit in the image display unit of predetermined number and 3rd image display unit, load respectively image corresponding to described image idsplay order previous image and after One image;
First display module, for showing the image that described first image display unit is loaded;
More new module, for when detecting image handover operation, according to the switching of described image handover operation Direction, updates the arrangement position of the image display unit of described predetermined number;
Determine module, the arrangement position after the image display unit according to described predetermined number updates, really Surely the image display unit specifying position it is currently at;
Second display module, is currently at described in show and specifies the image display unit of position to be loaded Image.
Device the most according to claim 6, it is characterised in that described device also includes:
First acquisition module, for the image corresponding according to described image idsplay order, obtains image list;
Second acquisition module, for obtaining image that described in described image list, image idsplay order is corresponding Previous image and a rear image.
Device the most according to claim 7, it is characterised in that described second acquisition module, for really The image identification that image corresponding with described image idsplay order in fixed described image list is adjacent;According to described Adjacent image identification, obtains previous image of image corresponding to described image idsplay order and a rear figure Picture.
Device the most according to claim 6, it is characterised in that described more new module, for when described When the switching direction of image handover operation is first direction, by described first image display unit and the 4th image Display module moves a unit length to described first direction, will be located in the image on first direction edge and shows Showing that assembly moves to the edge of second direction, described unit length is the width of an image display unit, Described 4th image display unit is that the described first the most all of image of image display unit shows Assembly, described first direction and described second direction are rightabout.
Device the most according to claim 6, it is characterised in that described more new module, for working as institute State the switching direction of image handover operation when being second direction, by described first image display unit and the 5th figure As display module moves a unit length to described second direction, will be located in the image on second direction edge Display module moves to the edge of first direction, and described unit length is the width of an image display unit, Described 5th image display unit is that the described second the most all of image of image display unit shows Assembly, described first direction and described second direction are rightabout.
CN201510382107.1A 2015-06-30 2015-06-30 Image display method and apparatus Pending CN106325664A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510382107.1A CN106325664A (en) 2015-06-30 2015-06-30 Image display method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510382107.1A CN106325664A (en) 2015-06-30 2015-06-30 Image display method and apparatus

Publications (1)

Publication Number Publication Date
CN106325664A true CN106325664A (en) 2017-01-11

Family

ID=57726680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510382107.1A Pending CN106325664A (en) 2015-06-30 2015-06-30 Image display method and apparatus

Country Status (1)

Country Link
CN (1) CN106325664A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109646949A (en) * 2017-10-11 2019-04-19 腾讯科技(深圳)有限公司 Object processing method, device, storage medium and electronic device
CN110996134A (en) * 2019-12-23 2020-04-10 腾讯科技(深圳)有限公司 Video playing method, device and storage medium
WO2020103792A1 (en) * 2018-11-22 2020-05-28 北京字节跳动网络技术有限公司 Method and device for loading display content, terminal device, and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794567A (en) * 2010-02-10 2010-08-04 中兴通讯股份有限公司 Method and terminal for loading pictures
CN103076953A (en) * 2012-12-26 2013-05-01 广东欧珀移动通信有限公司 Method for previewing picture files on user terminal equipment and user terminal equipment
US20140258970A1 (en) * 2013-03-11 2014-09-11 Research In Motion Limited Collaborative application development environment using a connected device
CN104599307A (en) * 2015-02-11 2015-05-06 成都品果科技有限公司 Mobile terminal animated image display method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794567A (en) * 2010-02-10 2010-08-04 中兴通讯股份有限公司 Method and terminal for loading pictures
CN103076953A (en) * 2012-12-26 2013-05-01 广东欧珀移动通信有限公司 Method for previewing picture files on user terminal equipment and user terminal equipment
US20140258970A1 (en) * 2013-03-11 2014-09-11 Research In Motion Limited Collaborative application development environment using a connected device
CN104599307A (en) * 2015-02-11 2015-05-06 成都品果科技有限公司 Mobile terminal animated image display method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109646949A (en) * 2017-10-11 2019-04-19 腾讯科技(深圳)有限公司 Object processing method, device, storage medium and electronic device
CN109646949B (en) * 2017-10-11 2021-06-08 腾讯科技(深圳)有限公司 Object processing method, device, storage medium and electronic device
WO2020103792A1 (en) * 2018-11-22 2020-05-28 北京字节跳动网络技术有限公司 Method and device for loading display content, terminal device, and storage medium
CN110996134A (en) * 2019-12-23 2020-04-10 腾讯科技(深圳)有限公司 Video playing method, device and storage medium
CN110996134B (en) * 2019-12-23 2022-09-09 腾讯科技(深圳)有限公司 Video playing method, device and storage medium

Similar Documents

Publication Publication Date Title
CN105955607B (en) Content sharing method and device
US9582172B2 (en) Display control apparatus and method, image display apparatus, and non-transitory computer readable medium
CN104898505A (en) Smart scene configuration method and device
CN105094577A (en) Method and apparatus for application switching
CN106020682A (en) Multi-task management method and device
CN105407473A (en) Wireless local area network discovery method and apparatus
CN109582207A (en) Display methods, device, terminal and the storage medium at multiple task management interface
CN104506443A (en) Router setting interface display method and device
CN106095407A (en) icon arrangement method, device and mobile device
CN106502560A (en) Display control method and device
CN107948926A (en) The method and apparatus that smart machine is shared
CN106445279A (en) Icon display method and device
CN105786507A (en) Display interface switching method and device
CN105630337A (en) Control controlling method and device
CN106095236A (en) The method and device of arranging desktop icons
CN104216525A (en) Method and device for mode control of camera application
CN104461236A (en) Method and device for displaying application icons
CN105224171A (en) icon display method, device and terminal
CN105101354A (en) Wireless network connection method and device
CN105094539B (en) Reference information display methods and device
CN104536669A (en) Information displaying method and device
CN108881634A (en) Terminal control method, device and computer readable storage medium
CN105739840A (en) Terminal and starting method of application programs in terminal
CN105550213A (en) Picture browsing method and device
CN105335061A (en) Information display method and apparatus and terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 511446 Guangzhou City, Guangdong Province, Panyu District, South Village, Huambo Business District Wanda Plaza, block B1, floor 28

Applicant after: Guangzhou Huaduo Network Technology Co., Ltd.

Address before: 510655, Guangzhou, Whampoa Avenue, No. 2, creative industrial park, building 3-08,

Applicant before: Guangzhou Huaduo Network Technology Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20170111

RJ01 Rejection of invention patent application after publication