CN106168900A - A kind of picture system of selection and device - Google Patents
A kind of picture system of selection and device Download PDFInfo
- Publication number
- CN106168900A CN106168900A CN201610430855.7A CN201610430855A CN106168900A CN 106168900 A CN106168900 A CN 106168900A CN 201610430855 A CN201610430855 A CN 201610430855A CN 106168900 A CN106168900 A CN 106168900A
- Authority
- CN
- China
- Prior art keywords
- picture
- preview
- selection
- window
- threshold value
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
Abstract
The present invention relates to a kind of system of selection and device, belong to field of information processing, be specifically related to a kind of picture system of selection and device.Including: step 1, create a selector for preselected picture;Step 2, arranges the preview picture in selector and selects rule;Step 3, according to regular picture presentation user selected in selector of described preview and selection in the preview window;Step 4, receives user's selection operation in the preview window, and determines final selection picture according to this selection operation.In general, the above technical scheme that the present invention is contemplated is compared with prior art, using the teaching of the invention it is possible to provide picture quality and size preprocessing function, effectively reduces mobile phone terminal memory consumption, can select plurality of pictures simultaneously, selects quantity can be customized by developer oneself;And need not to switch current interface just can direct preview this locality several picture selecting.
Description
Technical field
The present invention relates to a kind of system of selection and device, belong to field of information processing, be specifically related to a kind of picture and select
Method and device.
Background technology
Along with the development of camera technique, increasing picture pick-up device (such as, camera, mobile phone etc.) enters people
Daily life and work in.People can be by picture pick-up device with the drop of record live and work by the way of taking pictures.People
Carrying out preview picture by picture pick-up device when be all by photographic head export high-definition picture shown by compression
On screen, or directly allowing photographic head export a less size completes the operation of preview picture.Adopt in this way
Show that the details of some images cannot all be presented by the preview picture of picture pick-up device, especially preview graph picture is being amplified
Afterwards, picture clarity is on the low side.
Additionally, preview picture of the prior art selects interface can cover current whole interface, friendly interface is poor, makes
By complexity.
Summary of the invention
For disadvantages described above or the Improvement requirement of prior art, the invention provides a kind of picture system of selection and device,
Its object is to provide a convenient and swift and more friendly local picture selection mode.
In order to solve the problems referred to above, according to an aspect of the invention, it is provided a kind of picture system of selection, including:
Step 1, creates a selector for preselected picture;
Step 2, arranges the preview picture in selector and selects rule;
Step 3, according to regular picture presentation user selected in selector of described preview and selection in the preview window;
Step 4, receives user's selection operation in the preview window, and determines final selection picture according to this selection operation.
Preferably, above-mentioned a kind of picture system of selection, described preview and selection rule include the one in following parameter
Or multiple:
Preview picture amount threshold: for setting the maximum of preview picture number;Wherein, if preview picture amount threshold is more than
Local picture number, then load all local pictures as preview picture;
Picture physical size threshold value, for setting the maximum of preview picture physical size;Wherein, if local picture physical size
Less than picture physical size threshold value, then with artwork size preview picture, otherwise picture is zoomed to picture physical size threshold value with
In;
Picture compression mass parameter, treats preview picture and compression algorithm thereof for arranging whether to compress;
Preview sortord parameter, for arranging the sortord treating preview picture;
Select picture number threshold value: allow the maximum of the preview picture number of selection in the preview window for setting.
Preferably, above-mentioned a kind of picture system of selection, described preview sortord parameter is selected from: positive sequence time-sequencing,
Inverted order time-sequencing, picture size sort.
Preferably, above-mentioned a kind of picture system of selection, traversal photo current collection counting user have selected picture number
Amount;If user selects picture number to selecting picture number threshold value, then prompting user does not continue to select picture, and carries to user
For the operation that the picture chosen is cancelled.
Preferably, above-mentioned a kind of picture system of selection, described the preview window is a lightweight with operation knob
Roll view, and described the preview window is showed on current window.
In order to solve the problems referred to above, according to another aspect of the present invention, it is provided that a kind of picture selects device, including:
Preview selects module, creates a selector for preselected picture;
Rule arranges module, arranges the preview picture in selector and selects rule;
Preview display module, according to regular picture presentation user selected in selector of described preview and selection in preview window
In Kou;
Selection determines module, receives user's selection operation in the preview window, and determines final choosing according to this selection operation
Select picture.
Preferably, above-mentioned a kind of picture selects device, described preview and selection rule to include the one in following parameter
Or multiple:
Preview picture amount threshold: for setting the maximum of preview picture number;Wherein, if preview picture amount threshold is more than
Local picture number, then load all local pictures as preview picture;
Picture physical size threshold value, for setting the maximum of preview picture physical size;Wherein, if local picture physical size
Less than picture physical size threshold value, then with artwork size preview picture, otherwise picture is zoomed to picture physical size threshold value with
In;
Picture compression mass parameter, treats preview picture and compression algorithm thereof for arranging whether to compress;
Preview sortord parameter, for arranging the sortord treating preview picture;
Select picture number threshold value: allow the maximum of the preview picture number of selection in the preview window for setting.
Preferably, above-mentioned a kind of picture selects device, and described preview sortord parameter is selected from: positive sequence time-sequencing,
Inverted order time-sequencing, picture size sort.
Preferably, above-mentioned a kind of picture selects device, traversal photo current collection counting user to select picture number
Amount;If user selects picture number to selecting picture number threshold value, then prompting user does not continue to select picture, and carries to user
For the operation that the picture chosen is cancelled.
Preferably, above-mentioned a kind of picture selects device, and described the preview window is a lightweight with operation knob
Roll view, and described the preview window is showed on current window.
In general, the above technical scheme that the present invention is contemplated is compared with prior art, using the teaching of the invention it is possible to provide picture quality and
Size preprocessing function, effectively reduces mobile phone terminal memory consumption, can select plurality of pictures simultaneously, and selection quantity can by developer certainly
Oneself customizes;And need not to switch current interface just can direct preview this locality several picture selecting.
Accompanying drawing explanation
Accompanying drawing 1 is the schematic flow sheet of the present invention.
Accompanying drawing 2 is the structural representation of the present invention.
Detailed description of the invention
Below by embodiment, and combine accompanying drawing, technical scheme is described in further detail.
A kind of picture system of selection, including:
Step 1, creates a selector for preselected picture;
Step 2, arranges the preview picture in selector and selects rule;Preview and selection rule include the one in following parameter
Or multiple:
Preview picture amount threshold: for setting the maximum of preview picture number;Wherein, if preview picture amount threshold is more than
Local picture number, then load all local pictures as preview picture;
Picture physical size threshold value, for setting the maximum of preview picture physical size;Wherein, if local picture physical size
Less than picture physical size threshold value, then with artwork size preview picture, otherwise picture is zoomed to picture physical size threshold value with
In;
Picture compression mass parameter, treats preview picture and compression algorithm thereof for arranging whether to compress;
Preview sortord parameter, for arranging the sortord treating preview picture;Preview sortord parameter is selected from: during positive sequence
Between sequence, inverted order time-sequencing, picture size sequence.
Select picture number threshold value: allow the maximum of the preview picture number of selection in the preview window for setting.
Photo current collection can be traveled through and counting user has selected picture number;If user selects picture number to selecting picture number
Amount threshold value, then prompting user does not continue to select picture, and provides a user with the operation cancelling the picture chosen.
Step 3, according to regular picture presentation user selected in selector of described preview and selection in the preview window
In;
Step 4, receives user's selection operation in the preview window, and determines final selection picture according to this selection operation.
The preview window be one with operation knob lightweight roll view, and described the preview window is showed in current window it
On.
A kind of picture selects device, including:
Preview selects module, creates a selector for preselected picture;
Rule arranges module, arranges the preview picture in selector and selects rule;Preview and selection rule include following parameter
In one or more:
Preview picture amount threshold: for setting the maximum of preview picture number;Wherein, if preview picture amount threshold is more than
Local picture number, then load all local pictures as preview picture;
Picture physical size threshold value, for setting the maximum of preview picture physical size;Wherein, if local picture physical size
Less than picture physical size threshold value, then with artwork size preview picture, otherwise picture is zoomed to picture physical size threshold value with
In;
Picture compression mass parameter, treats preview picture and compression algorithm thereof for arranging whether to compress;
Preview sortord parameter, for arranging the sortord treating preview picture;Preview sortord parameter is selected from: during positive sequence
Between sequence, inverted order time-sequencing, picture size sequence.
Select picture number threshold value: allow the maximum of the preview picture number of selection in the preview window for setting.
Photo current collection can be traveled through and counting user has selected picture number;If user selects picture number to selecting picture number
Amount threshold value, then prompting user does not continue to select picture, and provides a user with the operation cancelling the picture chosen.
Preview display module, according to regular picture presentation user selected in selector of described preview and selection in advance
Look in window;
Selection determines module, receives user's selection operation in the preview window, and determines final choosing according to this selection operation
Select picture.The preview window be one with operation knob lightweight roll view, and described the preview window is showed in work as
On front window.
Embodiment 1:
As it is shown in figure 1, the invention provides a kind of picture system of selection.Wherein, step 1,2,3,4,5,6 be other for the present invention
The open interface that developer provides is used for customizing this picture selector.Detailed step is as follows:
Step 1 calls, for developer, the instantiation interface that the present invention provides, and act as creating one and was not provided with any attribute
Picture selector (present invention), corresponding interface method :+(instancetype) photoPicker (returns an empty choosing
Select device example).
Step 2 arranges interface (can not set, be defaulted as 10) for the present invention for the preview picture number that developer provides, if
Number is set and then takes all local pictures as preview graph more than local picture number, such as local blank of then showing without picture.Interface belongs to
Property is: previewCount(int type variable)
Maximum picture that step 3 provides for developer for the present invention (dimension of picture after selection, not preview graph size) physics
Size arranges interface (can not set, be defaulted as picture life size), if local picture physical size is less than arranging size, selects
Artwork size, then artwork is beforehand with corresponding uniform zoom if greater than arranging size.Interface attributes is: targetSize
(CGSize type variable)
Step 4 arranges interface (can not set, acquiescence is not compressed) for the present invention for picture quality compression (0 ~ 1) that developer provides.
Interface attributes is: quality(CGFloat type variable)
Step 5 is for the present invention for arranging of providing of the developer belonging positions that preview graph is local pictures (in chronological order: just
Sequence, inverted order), it is defaulted as inverted order arrangement.Interface attributes is: sortDescriptor(int type enumerated variable)
Step 6 can select picture upper limit quantity, by special algorithm (by this map for the present invention for what developer provided simultaneously
Preview graph quantity and sortord that sheet quantity and developer are arranged are that restrictive condition carries out do-while circulation to local picture
Traversal) determine that user can not continue to carry out unchecked picture if user has selected picture number equal to the upper limit arranged the most
Point selection operation and make corresponding prompting, at this moment the picture chosen can be carried out cancelling and selects operation by user.Interface attributes
For: requirCount(int type variable)
Step 7,8 by being similar to the algorithm of step 6, arrange acquisition accordingly according to step 2,3,4,5,6 developers corresponding
By " fetchAssetsWithOptions " function of iOS to the pretreatment in terms of dimension of picture during picture, then asynchronous
Picture is done quality compression by thread process.
Preview graph is added on the rolling view of a lightweight by step 9, and coordinates corresponding operation button to insert
The mode entered is presented in user's current interface, and user is still it can be seen that current interface, and the present invention does not use the biggest
The picture selector of most similar types replaces the mode of whole current page like that, thus gives one friendly vision of user
And interactive experience.
Embodiment 2
The present embodiment additionally provides a kind of picture and selects device, including:
Preview selects module, creates a selector for preselected picture;
Rule arranges module, arranges the preview picture in selector and selects rule;Preview and selection rule include following parameter
In one or more:
Preview picture amount threshold: for setting the maximum of preview picture number;Wherein, if preview picture amount threshold is more than
Local picture number, then load all local pictures as preview picture;
Picture physical size threshold value, for setting the maximum of preview picture physical size;Wherein, if local picture physical size
Less than picture physical size threshold value, then with artwork size preview picture, otherwise picture is zoomed to picture physical size threshold value with
In;
Picture compression mass parameter, treats preview picture and compression algorithm thereof for arranging whether to compress;
Preview sortord parameter, for arranging the sortord treating preview picture;Preview sortord parameter is selected from: during positive sequence
Between sequence, inverted order time-sequencing, picture size sequence.
Select picture number threshold value: allow the maximum of the preview picture number of selection in the preview window for setting.
Photo current collection can be traveled through and counting user has selected picture number;If user selects picture number to selecting picture number
Amount threshold value, then prompting user does not continue to select picture, and provides a user with the operation cancelling the picture chosen.
Preview display module, according to regular picture presentation user selected in selector of described preview and selection in advance
Look in window;
Selection determines module, receives user's selection operation in the preview window, and determines final choosing according to this selection operation
Select picture.The preview window be one with operation knob lightweight roll view, and described the preview window is showed in work as
On front window.
Specific embodiment described herein is only to present invention spirit explanation for example.The technical field of the invention
Described specific embodiment can be made various amendment or supplements or use similar mode to substitute by technical staff, but
Without departing from the spirit of the present invention or surmount scope defined in appended claims.
Claims (10)
1. a picture system of selection, it is characterised in that including:
Step 1, creates a selector for preselected picture;
Step 2, arranges the preview picture in selector and selects rule;
Step 3, according to regular picture presentation user selected in selector of described preview and selection in the preview window;
Step 4, receives user's selection operation in the preview window, and determines final selection picture according to this selection operation.
A kind of picture system of selection the most according to claim 1, it is characterised in that described preview and select rule include with
One or more in lower parameter:
Preview picture amount threshold: for setting the maximum of preview picture number;Wherein, if preview picture amount threshold is more than
Local picture number, then load all local pictures as preview picture;
Picture physical size threshold value, for setting the maximum of preview picture physical size;Wherein, if local picture physical size
Less than picture physical size threshold value, then with artwork size preview picture, otherwise picture is zoomed to picture physical size threshold value with
In;
Picture compression mass parameter, treats preview picture and compression algorithm thereof for arranging whether to compress;
Preview sortord parameter, for arranging the sortord treating preview picture;
Select picture number threshold value: allow the maximum of the preview picture number of selection in the preview window for setting.
A kind of picture system of selection the most according to claim 2, it is characterised in that described preview sortord parameter is selected
From: positive sequence time-sequencing, inverted order time-sequencing, picture size sort.
A kind of picture system of selection the most according to claim 2, it is characterised in that traversal photo current collection counting user
Select picture number;If user selects picture number to selecting picture number threshold value, then prompting user does not continue to select
Picture, and provide a user with the operation that the picture chosen is cancelled.
A kind of picture system of selection the most according to claim 1, it is characterised in that described the preview window be one with behaviour
The lightweight making knob rolls view, and is showed on current window by described the preview window.
6. a picture selects device, it is characterised in that including:
Preview selects module, creates a selector for preselected picture;
Rule arranges module, arranges the preview picture in selector and selects rule;
Preview display module, according to regular picture presentation user selected in selector of described preview and selection in preview window
In Kou;
Selection determines module, receives user's selection operation in the preview window, and determines final choosing according to this selection operation
Select picture.
A kind of picture the most according to claim 6 selects device, it is characterised in that described preview and select rule include with
One or more in lower parameter:
Preview picture amount threshold: for setting the maximum of preview picture number;Wherein, if preview picture amount threshold is more than
Local picture number, then load all local pictures as preview picture;
Picture physical size threshold value, for setting the maximum of preview picture physical size;Wherein, if local picture physical size
Less than picture physical size threshold value, then with artwork size preview picture, otherwise picture is zoomed to picture physical size threshold value with
In;
Picture compression mass parameter, treats preview picture and compression algorithm thereof for arranging whether to compress;
Preview sortord parameter, for arranging the sortord treating preview picture;
Select picture number threshold value: allow the maximum of the preview picture number of selection in the preview window for setting.
A kind of picture the most according to claim 7 selects device, it is characterised in that described preview sortord parameter is selected
From: positive sequence time-sequencing, inverted order time-sequencing, picture size sort.
A kind of picture the most according to claim 7 selects device, it is characterised in that traversal photo current collection counting user
Select picture number;If user selects picture number to selecting picture number threshold value, then prompting user does not continue to select
Picture, and provide a user with the operation that the picture chosen is cancelled.
A kind of picture the most according to claim 6 selects device, it is characterised in that described the preview window be one with
The lightweight of operation knob rolls view, and is showed on current window by described the preview window.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610430855.7A CN106168900A (en) | 2016-06-17 | 2016-06-17 | A kind of picture system of selection and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610430855.7A CN106168900A (en) | 2016-06-17 | 2016-06-17 | A kind of picture system of selection and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106168900A true CN106168900A (en) | 2016-11-30 |
Family
ID=58064414
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610430855.7A Pending CN106168900A (en) | 2016-06-17 | 2016-06-17 | A kind of picture system of selection and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106168900A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109033049A (en) * | 2018-06-29 | 2018-12-18 | 平安科技(深圳)有限公司 | Generation method and device, storage medium, the terminal of PPT document |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080247726A1 (en) * | 2007-04-04 | 2008-10-09 | Nhn Corporation | Video editor and method of editing videos |
CN102368196A (en) * | 2011-10-02 | 2012-03-07 | 上海量明科技发展有限公司 | Method, terminal and system for editing dynamical picture in content sending window of client side |
CN104461300A (en) * | 2014-12-15 | 2015-03-25 | 宇龙计算机通信科技(深圳)有限公司 | Picture preview method and picture preview system |
CN104917666A (en) * | 2014-03-13 | 2015-09-16 | 腾讯科技(深圳)有限公司 | Method of making personalized dynamic expression and device |
-
2016
- 2016-06-17 CN CN201610430855.7A patent/CN106168900A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080247726A1 (en) * | 2007-04-04 | 2008-10-09 | Nhn Corporation | Video editor and method of editing videos |
CN102368196A (en) * | 2011-10-02 | 2012-03-07 | 上海量明科技发展有限公司 | Method, terminal and system for editing dynamical picture in content sending window of client side |
CN104917666A (en) * | 2014-03-13 | 2015-09-16 | 腾讯科技(深圳)有限公司 | Method of making personalized dynamic expression and device |
CN104461300A (en) * | 2014-12-15 | 2015-03-25 | 宇龙计算机通信科技(深圳)有限公司 | Picture preview method and picture preview system |
Non-Patent Citations (2)
Title |
---|
JARQ: "着手实现一个图片选择器-PhotoPicker", 《HTTPS://BLOG.CSDN.NET/QJAY_DEV/ARTICLE/DETAILS/51182893》 * |
明仔SU: "iOS图片选择库:SuPhotoPicker", 《HTTPS://WWW.JIANSHU.COM/P/5FD7264949DB》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109033049A (en) * | 2018-06-29 | 2018-12-18 | 平安科技(深圳)有限公司 | Generation method and device, storage medium, the terminal of PPT document |
WO2020000812A1 (en) * | 2018-06-29 | 2020-01-02 | 平安科技(深圳)有限公司 | Method and apparatus for generating ppt document, storage medium, and computer device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104794462B (en) | A kind of character image processing method and processing device | |
CN103491299B (en) | One is taken pictures treating method and apparatus | |
US20190325627A1 (en) | Image processing apparatus, image processing method and storage medium | |
US20200412942A1 (en) | Photographing Method and Device, and Related Electronic Apparatus | |
CN108230262A (en) | Image processing method, image processing apparatus and storage medium | |
CN105183338B (en) | Object processing method | |
DE202008018283U1 (en) | Menu display for a mobile communication terminal | |
CN105513030B (en) | A kind of information processing method, device and electronic equipment | |
CN102112984A (en) | Method and apparatus for generating image collection | |
CN108234814A (en) | Control method and storage medium | |
CN104284252A (en) | Method for generating electronic photo album automatically | |
DE112017001505T5 (en) | User interface with dynamic refinement of filtered results | |
CN106789565A (en) | Social content sharing method and device | |
CN104735339A (en) | Automatic adjusting method and electronic equipment | |
CN106354777A (en) | Question searching method and device applied to electronic terminal | |
Xiao et al. | Vismantic: Meaning-making with Images. | |
CN103765473A (en) | Method of providing adjusted digital image representation of view, and apparatus | |
CN105824863A (en) | Desktop theme recommending method and terminal | |
CN113689324A (en) | Automatic adding and deleting method and device for portrait object based on two classification labels | |
CN106713859A (en) | Image visual monitoring search system and search method thereof | |
CN108228852A (en) | The method, apparatus and computer readable storage medium of electron album cover generation | |
CN110502959A (en) | Sexual discriminating method, apparatus, storage medium and electronic equipment | |
CN106155593B (en) | A kind of method and system for deleting photo based on shooting quality | |
CN104301514A (en) | Automatic taken photo deleting method and terminal based on GPS positioning | |
CN106168900A (en) | A kind of picture system of selection and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161130 |
|
RJ01 | Rejection of invention patent application after publication |