Summary of the invention
The objective of the invention is to propose a kind of method and device of realizing gallery formula picture browsing on the mobile phone, can be so that the browsing mode of picture be more interesting lively, the very strong photo of topic relativity in the managing mobile phone that can be convenient.
For reaching this purpose, the present invention by the following technical solutions:
A kind of method that realizes gallery formula picture browsing on the mobile phone, described method comprises:
Trigger gallery and create instruction, present the gallery interface, described gallery interface comprises: subject name edit box, picture add button;
Under the situation that triggers described subject name edit box, receive the subject name information of user's input, and described subject name information is played up to described subject name edit box;
Triggering under the situation that described picture adds button, receiving the N that the user selects and open photo, with described N open photo by the preset ratio convergent-divergent after, play up to described gallery interface, wherein N is the positive integer more than or equal to 1.
Further, in triggering described gallery interface, under the situation of certain pictures, according to picture editor's instruction of user's input, this pictures is edited.
Further, in triggering described gallery interface, under the situation of certain pictures, obtain and present the original photo of this photo.
Further, under the situation that triggers described gallery interface, according to the gallery edit instruction of user's input, described gallery interface is edited.
Further, described gallery interface also comprises the gallery delete button, under the situation that triggers described gallery delete button, deletes described gallery interface.
Accordingly, the present invention also provides a kind of device of realizing gallery formula picture browsing on the mobile phone, and described device comprises:
The gallery creation module is used for triggering gallery and creates instruction, presents the gallery interface, and described gallery interface comprises: subject name edit box, picture add button;
Gallery subject editing module is used for receiving the subject name information of user's input under the situation that triggers described subject name edit box, and described subject name information is played up to described subject name edit box;
The gallery photo adds module, is used for triggering under the situation that described picture adds button, receive the N that the user selects and open photo, with described N open photo by the preset ratio convergent-divergent after, play up to described gallery interface, wherein N is the positive integer more than or equal to 1.
Further, described device also comprises gallery photo editing module, is used under the situation that triggers described gallery interface pictures, according to picture editor's instruction of user's input, this pictures is edited.
Further, described device comprises that also original photo presents module, under the situation of certain pictures, obtains and present the original photo of this photo in triggering described gallery interface.
Further, described device also comprises the gallery editor module, is used for according to the gallery edit instruction of user's input, described gallery interface being edited under the situation that triggers described gallery interface.
Further, described gallery interface also comprises the gallery delete button, and described device also comprises the gallery removing module, is used for deleting described gallery interface under the situation that triggers described gallery delete button.
Method and the device of the picture browsing of gallery formula on the realization mobile phone that the present invention proposes, can be so that user's photo plaster that relevance in the mobile phone is very strong be placed on above the gallery that clear and definite thematic meaning arranged, and can carry out edit operation to the photo that subsides are placed on the gallery, be more prone to represent the meaning of photo, improved user's experience.
Embodiment
The present invention is described in further detail below in conjunction with drawings and Examples.Be understandable that specific embodiment described herein only is used for explaining the present invention, but not limitation of the invention.Also need to prove in addition, for convenience of description, only show part related to the present invention in the accompanying drawing but not full content.
Fig. 1-2 shows the first embodiment of the present invention.
A kind of method flow schematic diagram of realizing gallery formula picture browsing on the mobile phone that provides of first embodiment of the invention is provided Fig. 1.Referring to Fig. 1, this method comprises:
Step S101: trigger gallery and create instruction, present the gallery interface.
In the present embodiment, can be by the user be provided option of operation, for the user select be by file to the photo classification on the mobile phone or by gallery to the photo classification on the mobile phone, select to press under the situation of gallery to the photo classification on the mobile phone the user, trigger gallery and create instruction, present the gallery interface.Wherein, described gallery interface comprises: subject name edit box, picture add button.
Step S102: under the situation that triggers the subject name edit box, receive the subject name information of user's input, and subject name information is played up to the subject name edit box.
In the present embodiment, can the subject name edit box be edited by double-clicking the action command of subject name edit box, receive the subject name information of user's input.Wherein, subject name information is used for expressing the theme that described gallery circle picture will present photo, for example " travel in Beijing ".
Step S103: triggering under the situation that picture adds button, receiving the N that the user selects and open photo, with described N open photo by the preset ratio convergent-divergent after, play up to described gallery interface, wherein N is the positive integer more than or equal to 1.
In the present embodiment, monitor the click event of picture being added button, real-time judge whether triggered (for example clicking) described picture add button.If determined to have triggered the click event that described picture adds button, the N that receives user's selection opens photo.It can be the photo stored in the mobile phone memory that described N opens photo, the photo of downloading from mobile phone web pages, the photo that external equipment transmits etc.Open photo receiving the N that the user selects, and to described N open photo by the preset ratio convergent-divergent after, the N behind its convergent-divergent is opened photo disposable all playing up to described gallery interface at random.
Certainly those of ordinary skill in the art knows that easily can also by other means the N behind the described convergent-divergent be opened photo and play up to described gallery interface, for example the selecting sequence of described N being opened photo according to the user is played up one by one to described gallery interface.
In a preferred implementation of present embodiment, in triggering (for example long pressing) described gallery interface, under the situation of certain pictures, can this pictures be edited according to picture editor's instruction of user's input.The edit operation of described comparison film comprises operations such as the direction of photo in described gallery interface, size, position, explanatory note is set.In another preferred implementation of present embodiment, in triggering (for example double-clicking) described gallery interface, under the situation of certain pictures, obtain and present the original photo of this photo.
In a preferred implementation of present embodiment, under the situation that triggers described gallery interface, according to the gallery edit instruction of user's input, described gallery interface is edited.Described edit operation to the gallery interface comprises width that the gallery interface is set, highly.For example, by under the situation at described gallery interface, the edge up and down at gallery interface ejects an arrow separately, according to the action command that the user spurs arrow, length, the width of gallery is edited setting long.
In a preferred implementation of present embodiment, described gallery interface also comprises the gallery delete button, under the situation that triggers described gallery delete button, eject the dialog box of " whether deleting the photo on the gallery interface simultaneously ", after photo instruction when receiving user's input on the deletion gallery interface, delete the photo on described gallery interface and the described gallery interface.
A kind of gallery interface schematic diagram that adds behind the photo that Fig. 2 provides for first embodiment of the invention.Referring to Fig. 2, the gallery interface behind the interpolation photo comprises: each photo (for example photo 203) behind the convergent-divergent that subject name edit box 201, picture interpolation button 202, user select.Length ejects the explanatory note edit box 204 of this photo according to sheet 203, and the explanatory note for the user arranges this photo is described this photo.Length is pressed the gallery interface, and the edge up and down at gallery interface ejects an arrow (for example arrow 205, arrow 206) separately, by the length of pulling arrow 205 editor's galleries, and the width of pulling arrow 206 editor's galleries.
Fig. 3 shows the second embodiment of the present invention.
A kind of device schematic diagram of realizing gallery formula picture browsing on the mobile phone that provides of second embodiment of the invention is provided Fig. 3.Referring to Fig. 3, this device comprises: gallery creation module 301, and be used for triggering gallery and create instruction, present the gallery interface; Gallery subject editing module 302 is used for receiving the subject name information of user's input under the situation that triggers the subject name edit box, and subject name information is played up to the subject name edit box; The gallery photo adds module 303, is used for triggering under the situation that picture adds button, receive the N that the user selects and open photo, with described N open photo by the preset ratio convergent-divergent after, play up to described gallery interface, wherein N is the positive integer more than or equal to 1.
In the present embodiment, gallery creation module 301 can be by providing the user option of operation, for the user select be by file to the photo classification on the mobile phone or by gallery to the photo classification on the mobile phone, select to press under the situation of gallery to the photo classification on the mobile phone the user, trigger gallery and create instruction, present the gallery interface.Wherein, described gallery interface comprises: subject name edit box, picture add button.
In the present embodiment, gallery subject editing module 302 can be edited the subject name edit box by double-clicking the action command of subject name edit box, receives the subject name information of user's input.Wherein, subject name information is used for expressing the theme that described gallery circle picture will present photo.
In the present embodiment, the gallery photo adds module 303 and monitors the click event of picture being added button, real-time judge whether triggered (for example clicking) described picture add button.If determined to have triggered the click event that described picture adds button, the N that receives user's selection opens photo.It can be the photo stored in the mobile phone memory that described N opens photo, the photo of downloading from mobile phone web pages, the photo that external equipment transmits etc.Open photo receiving the N that the user selects, and to described N open photo by the preset ratio convergent-divergent after, the N behind its convergent-divergent is opened photo disposable all playing up to described gallery interface at random.
Certainly those of ordinary skill in the art knows easily, gallery photo interpolation module 303 can also be opened the N behind the described convergent-divergent photo by other means and be played up to described gallery interface, for example the selecting sequence of described N being opened photo according to the user is played up one by one to described gallery interface.
In a preferred implementation of present embodiment, this device also comprises gallery photo editing module (not shown), be used under the situation that triggers (for example long pressing) described gallery interface pictures, can this pictures being edited according to picture editor's instruction of user's input.The edit operation of described comparison film comprises operations such as the direction of photo in described gallery interface, size, position, explanatory note is set.In another preferred implementation of present embodiment, this device comprises that also original photo presents the module (not shown), is used for obtaining and present the original photo of this photo under the situation that triggers (for example double-clicking) described gallery interface pictures.
In a preferred implementation of present embodiment, this device also comprises gallery editor module (not shown), is used for according to the gallery edit instruction of user's input, described gallery interface being edited under the situation that triggers described gallery interface.Described edit operation to the gallery interface comprises width that the gallery interface is set, highly.For example, by under the situation at described gallery interface, the edge up and down at gallery interface ejects an arrow separately, according to the action command that the user spurs arrow, length, the width of gallery is edited setting long.
In a preferred implementation of present embodiment, described gallery interface also comprises the gallery delete button, this device also comprises gallery removing module (not shown), be used under the situation that triggers described gallery delete button, eject the dialog box of " whether deleting the photo on the gallery interface simultaneously ", after photo instruction when receiving user's input on the deletion gallery interface, delete the photo on described gallery interface and the described gallery interface.
The present invention can be so that user's photo plaster that relevance in the mobile phone is very strong be placed on above the gallery that clear and definite thematic meaning arranged, and can carry out edit operation to the photo that subsides are placed on the gallery, is more prone to represent the meaning of photo, has improved user's experience.
Notice that above-mentioned only is preferred embodiment of the present invention and institute's application technology principle.Skilled person in the art will appreciate that to the invention is not restricted to specific embodiment described here, can carry out various obvious variation for a person skilled in the art, readjust and substitute and can not break away from protection scope of the present invention.Therefore, though carried out comparatively detailed explanation by the present invention of above embodiment, the present invention is not limited only to above embodiment, under the situation that does not break away from the present invention's design, can also comprise more other equivalent embodiment, and scope of the present invention is determined by appended claim scope.