CN113377262B - Method and device for adjusting size proportion of pictures in electronic document - Google Patents
Method and device for adjusting size proportion of pictures in electronic document Download PDFInfo
- Publication number
- CN113377262B CN113377262B CN202010117094.6A CN202010117094A CN113377262B CN 113377262 B CN113377262 B CN 113377262B CN 202010117094 A CN202010117094 A CN 202010117094A CN 113377262 B CN113377262 B CN 113377262B
- Authority
- CN
- China
- Prior art keywords
- picture
- input data
- pictures
- digits
- scaling
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 18
- 238000010586 diagram Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04845—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0489—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using dedicated keyboard keys or combinations thereof
Abstract
The invention discloses a method and a device for adjusting the size proportion of pictures in an electronic document, which relate to the document control technology, and the method comprises the following steps: selecting one or more pictures in the electronic document according to the input operation; and when an editing instruction for zooming the selected one or more pictures is received, zooming and displaying the pictures according to the zooming scale corresponding to the input data. The workload of a user when the electronic document is used for adjusting the size proportion of the picture is simplified, and the working efficiency of the user is improved.
Description
Technical Field
The present invention relates to document control technology, and more particularly, to a method and apparatus for adjusting the size ratio of pictures in an electronic document.
Background
As shown in fig. 1, in the current electronic document application interface, when a picture is imported, the picture is displayed with the original size of the picture or the width of the document content as the original size of the picture. If the user needs to scale the picture in size, there are two ways:
in the mode 1, after the picture is selected, the mouse moves to the position of the top corner of the picture, in the related art, four corners of the picture are provided with an operation prompt control, and when the mouse moves in, the cursor icon is changed, as shown in fig. 2. The user can slide the mouse without putting by clicking the left button of the mouse, and the corresponding zooming is carried out on the picture.
Mode 2, after selecting the picture, the width and height dimensions of the picture object are input on the toolbar, as shown in fig. 3.
Disclosure of Invention
In order to solve the technical problems, the invention provides a method and a device for adjusting the size proportion of pictures in an electronic document, which simplify the workload of a user when the user adjusts the size proportion of pictures by using the electronic document and improve the working efficiency of the user.
In order to achieve the object of the present invention, the present invention provides a method for adjusting the size ratio of pictures in an electronic document, comprising:
selecting one or more pictures in the electronic document according to the input operation;
and when an editing instruction for zooming the selected one or more pictures is received, zooming and displaying the pictures according to the zooming scale corresponding to the input data.
Preferably, scaling the image according to the scaling corresponding to the input data includes:
and taking the original size of the picture or the content width of the electronic document as a reference of the picture, and enlarging or reducing the picture according to the corresponding scaling of the input data.
Preferably, the method further comprises:
and receiving an editing instruction of the user for rescaling the selected one or more pictures, and carrying out corresponding operation on the one or more pictures.
Preferably, the step of performing corresponding operations on the one or more pictures includes:
taking the current size of the picture as a reference, and performing scaling display on the picture according to the scaling corresponding to the input data; or,
detecting whether the currently input data is consistent with the previously input data or not, and keeping the current size of the picture unchanged when the currently input data is consistent with the previously input data; when the currently input data is inconsistent with the previously input data, the original size of the picture or the content width of the electronic document is used as a reference of the picture, and the picture is enlarged or reduced according to the corresponding scaling of the input data.
Preferably, the method further comprises:
and popping up the current zoomed percentage value of the prompt on the zoomed picture, wherein the prompt duration is the first time.
Preferably, scaling the image according to the scaling corresponding to the input data includes:
and converting the one or more digits into a percentage value according to the one or more digits received within a preset range, and amplifying or reducing the picture according to the percentage value.
Preferably, when a one digit is received, converting the one digit to a percentage value comprises:
multiplying the one digit by ten, converting the product into a percentage value, and reducing the picture according to the percentage value.
The embodiment of the invention also provides a device for adjusting the size proportion of the pictures in the electronic document, which comprises:
an acquisition module configured to select one or more pictures in the electronic document according to an input operation;
and the adjusting module is used for carrying out scaling display on the pictures according to the scaling scale corresponding to the input data when receiving an editing instruction for scaling the selected one or more pictures.
Preferably, the adjustment module is further configured to:
and receiving an editing instruction of the user for rescaling the selected one or more pictures, and carrying out corresponding operation on the one or more pictures.
Preferably, the device further comprises:
the display module is set to pop up the current zoomed percentage value of the prompt on the zoomed picture, and the prompt duration is the first time.
Compared with the prior art, the invention can quickly scale the picture through keyboard input, simplify the workload of a user when the user adjusts the size proportion of the picture by using the electronic document, improve the working efficiency of the user, enable the user to intuitively see the scaling effect and improve the editing efficiency.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate and do not limit the invention.
FIG. 1 is a schematic diagram of importing pictures into an electronic document according to an embodiment of the present invention;
fig. 2 is a schematic diagram of zooming a picture according to an embodiment of the present invention;
fig. 3 is a schematic diagram of zooming a picture according to an embodiment of the present invention;
FIG. 4 is a flowchart of a method of adjusting a picture size ratio in an electronic document according to an embodiment of the present invention;
fig. 5 is a schematic diagram of zooming a picture according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for adjusting a size ratio of a picture in an electronic document according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantageous effects of the present invention more apparent, the embodiments of the present invention will be described with reference to the accompanying drawings, and it should be noted that, without conflict, the embodiments and features in the embodiments may be arbitrarily combined with each other.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail hereinafter with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be arbitrarily combined with each other.
The steps illustrated in the flowchart of the figures may be performed in a computer system, such as a set of computer-executable instructions. Also, while a logical order is depicted in the flowchart, in some cases, the steps depicted or described may be performed in a different order than presented herein.
As shown in fig. 4, an embodiment of the present invention provides a method for adjusting a size ratio of a picture in an electronic document, which may include steps S101 to S102:
s101, selecting one or more pictures in an electronic document according to an input operation;
s102, when an editing instruction for zooming one or more selected pictures is received, zooming and displaying the pictures according to the corresponding zooming scale of the input data.
In the embodiment of the invention, when a user inserts a picture into an electronic document, the picture is displayed by taking the original size of the picture or the content width of the document as the initial size of the picture; and under the condition that the user selects the picture, clicking any key from the numbers 0 to 9 on the keyboard, and zooming the picture according to the percentage of the corresponding parameter. For example, the user clicks the number 8 key or 8 and 0 keys on the keyboard, and the picture is reduced to 80% of the original size.
In the embodiment of the present invention, step S102 of scaling and displaying the picture according to the scaling corresponding to the input data includes:
and taking the original size of the picture or the content width of the electronic document as a reference of the picture, and enlarging or reducing the picture according to the corresponding scaling of the input data.
In the embodiment of the invention, the method further comprises the following steps:
and receiving an editing instruction of the user for rescaling the selected one or more pictures, and carrying out corresponding operation on the one or more pictures.
The embodiment of the invention can enable the user to intuitively see the zooming effect, and can continuously adjust if the user is not satisfied with the zooming effect, and continuously zoom and display the picture when receiving the editing instruction of zooming the picture again.
In the embodiment of the invention, the steps of performing corresponding operations on the one or more pictures comprise:
taking the current size of the picture as a reference, and performing scaling display on the picture according to the scaling corresponding to the input data; or,
detecting whether the currently input data is consistent with the previously input data or not, and keeping the current size of the picture unchanged when the currently input data is consistent with the previously input data; when the currently input data is inconsistent with the previously input data, the original size of the picture or the content width of the electronic document is used as a reference of the picture, and the picture is enlarged or reduced according to the corresponding scaling of the input data.
In the continuous adjustment process, when any key from the number 0 to the number 9 on the keyboard is received again, the embodiment of the invention can adjust the current size of the picture as a reference, and can also adjust the original size of the picture or the content width of the electronic document as a reference of the picture.
In the embodiment of the invention, the method further comprises the following steps:
and popping up the current zoomed percentage value of the prompt on the zoomed picture, wherein the prompt duration is the first time.
As shown in fig. 5, the embodiment of the present invention may perform a toast prompt on the currently scaled percentage value in the lower left corner of the picture, and prompt to disappear after 3 seconds.
In the embodiment of the present invention, scaling the image according to the scaling corresponding to the input data includes:
and converting the one or more digits into a percentage value according to the one or more digits received within a preset range, and amplifying or reducing the picture according to the percentage value.
In an embodiment of the present invention, when receiving a one-digit number, converting the one-digit number into a percentage value includes:
multiplying the one digit by ten, converting the product into a percentage value, and reducing the picture according to the percentage value.
In the embodiment of the invention, the percentage values can be converted according to the following rules: 10 =10%; 20 =20%; 30 =30%; 40 =40%; 50 =50%; 60 =60%; 70 =70%; 80 =80%; 90 =90%; the percentage values may also be converted according to the following rules: 1=10%; 2=20%; 3=30%; 4=40%; 5=50%; 6=60%; 7=70%; 8=80%; 9=90%; for integer multiples other than ten, the conversion is directly to the corresponding percentage value, e.g., 7 and 8 keys are entered consecutively, i.e., scaled to 78%.
As shown in fig. 6, an embodiment of the present invention provides an apparatus for adjusting a size ratio of a picture in an electronic document, including:
an acquisition module configured to select one or more pictures in the electronic document according to an input operation;
and the adjusting module is used for carrying out scaling display on the pictures according to the scaling scale corresponding to the input data when receiving an editing instruction for scaling the selected one or more pictures.
In an embodiment of the present invention, the adjusting module is further configured to:
and receiving an editing instruction of the user for rescaling the selected one or more pictures, and carrying out corresponding operation on the one or more pictures.
In an embodiment of the present invention, the apparatus further includes:
the display module is set to pop up the current zoomed percentage value of the prompt on the zoomed picture, and the prompt duration is the first time.
Although the embodiments of the present invention are described above, the embodiments are only used for facilitating understanding of the present invention, and are not intended to limit the present invention. Any person skilled in the art can make any modification and variation in form and detail without departing from the spirit and scope of the present disclosure, but the scope of the present disclosure is to be determined by the appended claims.
Claims (2)
1. A method for adjusting the size scale of a picture in an electronic document, comprising:
selecting one or more pictures in the electronic document according to the input operation, wherein the pictures meet the following properties: when a user inserts a picture into an electronic document, the picture is displayed by taking the original size of the picture or the content width of the electronic document as the original size of the picture;
when an editing instruction for scaling one or more selected pictures is received, scaling and displaying the pictures according to the scaling scale corresponding to the input data;
the method further comprises the steps of: popping up a percentage value after the current scaling of the prompt on the scaled picture, wherein the prompt duration is the first time;
the zooming display of the picture according to the corresponding scaling of the input data comprises the following steps:
converting the one or more digits into a percentage value according to the one or more digits received within a preset time;
taking the original size of the picture or the content width of the electronic document as a reference of the picture, and amplifying or reducing the picture according to the percentage value;
the converting the one or more digits into a percentage value based on the one or more digits received within a preset time includes:
when a digit is received within a preset time,
multiplying the one-digit number by ten, and converting the one-digit number into a percentage value according to the product;
when two digits are received within the preset time, multiplying the digits input first by the digits input after ten times according to the sequence of inputting the two digits, and converting the digits into percentage values according to the calculation result;
the method further comprises the steps of:
receiving an editing instruction of a user for rescaling one or more pictures, and performing corresponding operation on the one or more pictures;
the step of performing corresponding operations on the one or more pictures comprises the following steps:
taking the current size of the picture as a reference, and performing scaling display on the picture according to the scaling corresponding to the input data; or,
detecting whether the currently input data is consistent with the previously input data or not, and keeping the current size of the picture unchanged when the currently input data is consistent with the previously input data; when the currently input data is inconsistent with the previously input data, the original size of the picture or the content width of the electronic document is used as a reference of the picture, and the picture is enlarged or reduced according to the corresponding scaling of the input data.
2. An apparatus for adjusting a picture size ratio in an electronic document, comprising:
the acquisition module is used for selecting one or more pictures in the electronic document according to the input operation, wherein the pictures satisfy the following properties: when a user inserts a picture into an electronic document, the picture is displayed by taking the original size of the picture or the content width of the electronic document as the initial size of the picture;
the adjusting module is used for carrying out scaling display on the pictures according to the scaling scale corresponding to the input data when an editing instruction for scaling one or more selected pictures is received; the method comprises the steps of setting a current zoom-in time of a zoomed picture, and setting a zoomed picture to be a zoomed picture;
the zooming display of the picture according to the corresponding scaling of the input data comprises the following steps:
converting the one or more digits into a percentage value according to the one or more digits received within a preset time, and amplifying or reducing the picture according to the percentage value by taking the original size of the picture or the content width of the electronic document as the reference of the picture;
the converting the one or more digits into a percentage value based on the one or more digits received within a preset time includes:
when a one-digit number is received within a preset time, multiplying the one-digit number by ten, and converting the one-digit number into a percentage value according to the product;
when two digits are received within the preset time, multiplying the digits input first by the digits input after ten times according to the sequence of inputting the two digits, and converting the digits into percentage values according to the calculation result;
the adjustment module is further configured to:
receiving an editing instruction of a user for rescaling one or more pictures, and performing corresponding operation on the one or more pictures;
the step of performing corresponding operations on the one or more pictures comprises the following steps:
taking the current size of the picture as a reference, and performing scaling display on the picture according to the scaling corresponding to the input data; or,
detecting whether the currently input data is consistent with the previously input data or not, and keeping the current size of the picture unchanged when the currently input data is consistent with the previously input data; when the currently input data is inconsistent with the previously input data, the original size of the picture or the content width of the electronic document is used as a reference of the picture, and the picture is enlarged or reduced according to the corresponding scaling of the input data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010117094.6A CN113377262B (en) | 2020-02-25 | 2020-02-25 | Method and device for adjusting size proportion of pictures in electronic document |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010117094.6A CN113377262B (en) | 2020-02-25 | 2020-02-25 | Method and device for adjusting size proportion of pictures in electronic document |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113377262A CN113377262A (en) | 2021-09-10 |
CN113377262B true CN113377262B (en) | 2024-01-26 |
Family
ID=77569192
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010117094.6A Active CN113377262B (en) | 2020-02-25 | 2020-02-25 | Method and device for adjusting size proportion of pictures in electronic document |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113377262B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007074136A (en) * | 2005-09-05 | 2007-03-22 | Seiko Epson Corp | Layout editing device, method, and program, and server |
CN101267522A (en) * | 2007-03-15 | 2008-09-17 | 索尼株式会社 | Information processing apparatus, imaging apparatus, image display control method and computer program |
JP2009238019A (en) * | 2008-03-27 | 2009-10-15 | Dainippon Printing Co Ltd | Composition device, composition method, and composition processing program |
CN103955469A (en) * | 2014-03-28 | 2014-07-30 | 北京奇虎科技有限公司 | Method and device for page scaling in browser |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7366995B2 (en) * | 2004-02-03 | 2008-04-29 | Roland Wescott Montague | Combination tool that zooms in, zooms out, pans, rotates, draws, or manipulates during a drag |
US11314398B2 (en) * | 2016-12-14 | 2022-04-26 | General Electric Company | Method and system for enhanced visualization of ultrasound images by performing predictive image depth selection |
-
2020
- 2020-02-25 CN CN202010117094.6A patent/CN113377262B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007074136A (en) * | 2005-09-05 | 2007-03-22 | Seiko Epson Corp | Layout editing device, method, and program, and server |
CN101267522A (en) * | 2007-03-15 | 2008-09-17 | 索尼株式会社 | Information processing apparatus, imaging apparatus, image display control method and computer program |
JP2009238019A (en) * | 2008-03-27 | 2009-10-15 | Dainippon Printing Co Ltd | Composition device, composition method, and composition processing program |
CN103955469A (en) * | 2014-03-28 | 2014-07-30 | 北京奇虎科技有限公司 | Method and device for page scaling in browser |
Non-Patent Citations (5)
Title |
---|
CAD指定比例因子缩放怎么用?;Trenson Chou;《https://mp.weixin.qq.com/s/6h-S1XVR00ICuMnwzEdZHA》;20171030;第1-3页 * |
PPT中如何设置图片的缩放比例;一藻读书;《https://jingyan.baidu.com/article/597a0643b0d059702a52430c.html》;20200119;第1-3页 * |
一藻读书.PPT中如何设置图片的缩放比例.《https://jingyan.baidu.com/article/597a0643b0d059702a52430c.html》.2020, * |
怎么才能把ppt里面插入的多张照片快速调整到统一大小?;百度网友b15888d;《https://zhidao.baidu.com/question/272766979.html》;20190524;第2-4页 * |
浏览器怎么调整网页显示比例;百度网友b15888d;《https://zhidao.baidu.com/question/524188127610066525.html》;20190210;第1-2页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113377262A (en) | 2021-09-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7213214B2 (en) | Graphical user interface with zoom for detail-in-context presentations | |
US20090109243A1 (en) | Apparatus and method for zooming objects on a display | |
US20060227153A1 (en) | System and method for dynamically zooming and rearranging display items | |
WO2013139089A1 (en) | Screen content zoom-in and displaying method and terminal | |
US9170728B2 (en) | Electronic device and page zooming method thereof | |
US20160275054A1 (en) | Webpage display method and device | |
US20050179705A1 (en) | Navigation within a large computer file | |
CN103377001B (en) | Control method for locking zoom area of browsed page of touch device | |
CN105700766B (en) | User interface display system and method | |
WO2023155811A1 (en) | Page layout adjustment method and apparatus | |
EP2573663B1 (en) | Method for selecting area of content for enlargement, and apparatus and system for providing content | |
CN105511712A (en) | Method and device for showing picture | |
CN113687753A (en) | Split screen style configuration method and device, intelligent terminal and storage medium | |
CN113986076A (en) | Icon display control method and device, electronic equipment and storage medium | |
CN111638818B (en) | Window position adjusting method and device and electronic equipment | |
WO2023092992A1 (en) | Page element processing method and device, and computer-readable storage medium | |
CN107861711B (en) | Page adaptation method and device | |
CN105988700B (en) | Terminal screen display method and device | |
CN113377262B (en) | Method and device for adjusting size proportion of pictures in electronic document | |
CN112148193A (en) | Navigation gesture setting method and device and electronic equipment | |
CN111796746A (en) | Volume adjusting method, volume adjusting device and electronic equipment | |
WO2022194211A1 (en) | Image processing method and apparatus, electronic device and readable storage medium | |
US20070006086A1 (en) | Method of browsing application views, electronic device, graphical user interface and computer program product | |
WO2023274067A1 (en) | Icon generation method and apparatus, electronic device, and readable storage medium | |
RU2509377C2 (en) | Method and system for image viewing on display device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |