CN103034439A - Method and device for generating drawing file - Google Patents

Method and device for generating drawing file Download PDF

Info

Publication number
CN103034439A
CN103034439A CN2012105064566A CN201210506456A CN103034439A CN 103034439 A CN103034439 A CN 103034439A CN 2012105064566 A CN2012105064566 A CN 2012105064566A CN 201210506456 A CN201210506456 A CN 201210506456A CN 103034439 A CN103034439 A CN 103034439A
Authority
CN
China
Prior art keywords
track
user
drawing track
file
touch
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
CN2012105064566A
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN2012105064566A priority Critical patent/CN103034439A/en
Publication of CN103034439A publication Critical patent/CN103034439A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention is suitable for the technical field of a mobile terminal, and provides a method and a device for generating a drawing file. The method comprises the following steps of detecting a drawing track which is generated by drawing actions on a touch screen by a user; and extracting coordinate information of touch points contained in the drawing track and attribute information of the drawing track in a real-time way, so as to generate the drawing file. The method and the system disclosed by the embodiment of the invention have the advantages that each drawing track is recorded and stored in the drawing process, and then the user can reedit the drawing on the mobile terminal without using a third-party professional picture processing tool, so the time of the user is saved, and the editing efficiency of the user is improved.

Description

A kind of drawing document generating method and device
Technical field
The invention belongs to technical field of mobile terminals, relate in particular to a kind of drawing document generating method and device.
Background technology
Along with the portable terminal arrival in intelligent epoch, the configuration of portable terminal from strength to strength, function is more and more complete, the user can carry out painting creation at the touch-screen of portable terminal, realization becomes artist's fine wish, when the user paint complete after, painting is saved to portable terminal with the form of picture.
Yet, when the user need to be to the painting editor on the portable terminal, need to derive the picture of drawing, at portable terminal third party's specialty picture processing instrument is installed, such as photoshop, nEO iMAGING etc., this picture is written into third party's specialty picture processing instrument edits, editing process is loaded down with trivial details, expend user's time, affected user's editorial efficiency.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of drawing document generating method, and it is loaded down with trivial details to be intended to solve existing painting edit methods, has affected the problem of user's editorial efficiency.
The embodiment of the invention is achieved in that a kind of drawing document generating method, comprising:
Detect the drawing track that the user generates in the action of touch-screen drawing;
The coordinate information of the touch point that the described drawing track of extract real-time comprises and the attribute information of described drawing track are to generate the drawing file.
Another purpose of the embodiment of the invention is to provide a kind of drawing file creating apparatus, comprising:
Detecting unit is for detection of the drawing track of user in touch-screen drawing action generation;
Extraction unit is used for the coordinate information of the touch point that the described drawing track of extract real-time comprises and the attribute information of described drawing track, to generate the drawing file.
In embodiments of the present invention, by in painting process, every drawing track record being stored, so that the user need not third party's specialty picture processing instrument, the operation that can update the drawing on the portable terminal, save user's time, thereby improved user's editorial efficiency.
Description of drawings
Fig. 1 is the realization flow figure of the drawing document generating method that provides of the embodiment of the invention;
Fig. 2 is the structured flowchart of the drawing file creating apparatus that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
In embodiments of the present invention, by in painting process, every drawing track record being stored, so that the user need not third party's specialty picture processing instrument, the operation that can update the drawing on the portable terminal, save user's time, thereby improved user's editorial efficiency.
Fig. 1 shows the realization flow of a kind of document generating method of painting that the embodiment of the invention provides, and details are as follows:
In step S101, detect the drawing track that the user generates in the action of touch-screen drawing.
In the present embodiment, the kinetic energy of will painting starts as trigger condition, and when drawing kinetic energy started, the drawing track that start detection user generates in the action of touch-screen drawing was until painting function is closed.
In the present embodiment, when drawing kinetic energy started, the action of user on touch-screen was the drawing action.The generation of drawing action includes but not limited to that mouse slides, touches and slide and slide by key control.Preferably, adopt to touch and slide, when finger left touch-screen, drawing action of expression user was finished.
In the present embodiment, can be by the thread of management slip event in the touch-screen, detect the drawing track that the user generates in the action of touch-screen drawing, when detecting the user at the drawing track that the action of touch-screen drawing generates, the coordinate information of the touch point that startup extract real-time drawing track comprises and the attribute information of drawing track.
In step S102, the coordinate information of the touch point that extract real-time drawing track comprises and the attribute information of drawing track are to generate the drawing file.
In the present embodiment, the coordinate information of the touch point that the thread extract real-time drawing track by touch-screen comprises and the attribute information of drawing track, this attribute information comprises lines, color, thickness of the track of painting etc., the coordinate information of touch point is specially the pixel coordinate of touch point, lines, color, thickness, pixel coordinate to every drawing track, record storage, generate the drawing file, preserve at last the drawing file, what need to describe is, the form of drawing file can for any form of prior art, not limit at this.
As a preferred embodiment of the present invention, record generates the time of drawing file; Should the time related with this drawing file set up, call the drawing file that is associated with this fixed time the fixed time according to the user.
In the present embodiment, when producing a drawing file, record the time of this drawing file, with the described time related with described drawing file set up, as user during the fixed time, the drawing file that will be associated with this fixed time shows, so that the follow-up continuation editing operation of user.
As preferential embodiment of the present invention, generate scaling according to the resolution of drawing track and the resolution of touch-screen; According to this scaling this drawing track is carried out Zoom display.
In the present embodiment, the resolution of drawing track can be obtained in the system of the portable terminal that generates paint data, and the resolution of touch-screen is obtained in the system of the portable terminal that calls paint data.After according to scaling all pixel coordinates being carried out convergent-divergent, by lines, color, thickness etc. in the paint data, draw out every drawing track at touch-screen.Thereby on the screen of different resolution, the unified of track of also realizing painting shows, thereby the user can edit by other portable terminal.
As a preferred embodiment of the present invention, the user edits the drawing file, and editor comprises deletion, adds, chooses, amplifies, dwindles, locally amplify, one or more edit modes in the replacing background, cutting.
In the present embodiment, when the detection user opens the drawing file, by the lines in the drawing file, color, thickness, pixel coordinate etc., draw out every drawing track at touch-screen.The user can edit the drawing track, and editor comprises deletion, adds, chooses, amplifies, dwindles, locally amplify, one or more edit modes in the replacing background, cutting.By diversified edit mode, be convenient to the user drawing is revised fast, thereby improve painting effect.
For ease of explanation, paint track as example take deletion, when the user double-clicks the drawing track, instruction is chosen in generation, and system receives and chooses instruction, and the track of should painting places selected state, and this drawing track carried out highlighted demonstration, the user can delete the drawing track by default delete key.
As a preferred embodiment of the present invention, the user updates the drawing track, comprising:
Show and cancel list of steps, this cancels the edit step that comprises in the list of steps the drawing track;
Detect the user and cancel the edit step of appointment in the list of steps at this;
According to this edit step this drawing track is cancelled.
In the present embodiment, touch-screen shows cancels list of steps, cancel the edit step that comprises in the list of steps the drawing track, each edit step of prior recording user, as increased literal, revised line style, distribute a numbering for per step edit step, number corresponding with edit step.As 1 to N edit step, this N be the integer more than or equal to 1, detects the edit step of user's appointment in the edit step tabulation, according to described edit step, on touch-screen to the operation of cancelling of the track of painting, with raising user's editorial efficiency.
As another preferred embodiment of the present invention, touching the operation of cancelling of screen display previous step and next step; Cancel operation according to user selection described, the drawing track is cancelled.When the user selection previous step, the numbering that is about to present edit step subtracts 1, quotes corresponding edit step, operate at touch-screen, when user selection next step the time, the numbering that is about to present edit step adds 1, quoting corresponding edit step, thereby further improve user's editorial efficiency.
Fig. 2 shows the structured flowchart of a kind of file creating apparatus of painting that the embodiment of the invention provides, this device can run on the various terminals with touch-screen, include but not limited to mobile phone, pocket computing machine (Pocket Personal Computer, PPC), palm PC, computing machine, notebook computer, personal digital assistant (Personal Digital Assistant, PDA) etc.For convenience of explanation, only show the part relevant with present embodiment.
Detecting unit 21 detects the drawing track that the user generates in the action of touch-screen drawing.
Extraction unit 22, the coordinate information of the touch point that extract real-time drawing track comprises and the attribute information of this drawing track are to generate the drawing file.
Alternatively, this extraction unit 22 comprises:
The record subelement, record generates the time of drawing file.
Related subelement, time and this file set up of painting is related, call the drawing file that is associated with this fixed time the fixed time according to the user.
Alternatively, in this device, comprising:
Generation unit 23 generates scaling according to the resolution of drawing track and the resolution of touch-screen.
Display unit 24 carries out Zoom display according to scaling to this drawing track
Alternatively, in this device, comprising:
Edit cell 25, the user edits this drawing track in this drawing file, and this editor comprises deletion, adds, chooses, amplifies, dwindles, locally amplify, change one or more edit modes in background, the cutting.
Alternatively, this edit cell 25 comprises:
Show subelement 251, show and cancel list of steps that this cancels the edit step that comprises in the list of steps this drawing track.
Detection sub-unit 252, the edit step of detection user appointment in cancelling list of steps.
Cancel subelement 253, according to edit step this drawing track is cancelled.
In embodiments of the present invention, by in painting process, every drawing track record being stored, so that the user need not third party's specialty picture processing instrument, the operation that can update the drawing on the portable terminal, save user's time, thereby improved user's editorial efficiency.
The above only is preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a drawing document generating method is characterized in that, comprising:
Detect the drawing track that the user generates in the action of touch-screen drawing;
The coordinate information of the touch point that the described drawing track of extract real-time comprises and the attribute information of described drawing track are to generate the drawing file.
2. the method for claim 1 is characterized in that, comprising:
Record the time of described generation drawing file;
With the described time related with described drawing file set up, call the drawing file that is associated with the described fixed time fixed time according to the user.
3. the method for claim 1 is characterized in that, comprising:
Generate scaling according to the resolution of drawing track and the resolution of touch-screen;
According to described scaling described drawing track is carried out Zoom display.
4. the method for claim 1 is characterized in that, comprising:
The user edits the described drawing track in the described drawing file, and described editor comprises deletion, adds, chooses, amplifies, dwindles, locally amplify, change one or more edit modes in background, the cutting.
5. method as claimed in claim 4 is characterized in that, also comprises:
Show and cancel list of steps, the described edit step that comprises in the list of steps described drawing track of cancelling;
Detect the user in the described edit step of cancelling appointment in the list of steps;
According to described edit step described drawing track is cancelled.
6. a drawing file creating apparatus is characterized in that, comprising:
Detecting unit is for detection of the drawing track of user in touch-screen drawing action generation;
Extraction unit is used for the coordinate information of the touch point that the described drawing track of extract real-time comprises and the attribute information of described drawing track, to generate the drawing file.
7. device as claimed in claim 6 is characterized in that, described extraction unit comprises:
The record subelement, the time that is used for recording described generation drawing file;
Related subelement, with the described time related with described drawing file set up, call the drawing file that is associated with the described fixed time fixed time according to the user.
8. device as claimed in claim 6 is characterized in that, comprising:
Generation unit is used for generating scaling according to the resolution of drawing track and the resolution of touch-screen;
Display unit is used for according to described scaling described drawing track being carried out Zoom display.
9. device as claimed in claim 6 is characterized in that, comprising:
Edit cell is used for the user the described drawing track of described drawing file is edited, and described editor comprises deletion, adds, chooses, amplifies, dwindles, locally amplify, one or more edit modes in the replacing background, cutting.
10. device as claimed in claim 6 is characterized in that, described edit cell comprises:
Show subelement, be used for showing and cancel list of steps, the described edit step that comprises in the list of steps described drawing track of cancelling;
Detection sub-unit, for detection of the user in the described edit step of cancelling appointment in the list of steps;
Cancel subelement, be used for according to described edit step described drawing track being cancelled.
CN2012105064566A 2012-11-30 2012-11-30 Method and device for generating drawing file Pending CN103034439A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012105064566A CN103034439A (en) 2012-11-30 2012-11-30 Method and device for generating drawing file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012105064566A CN103034439A (en) 2012-11-30 2012-11-30 Method and device for generating drawing file

Publications (1)

Publication Number Publication Date
CN103034439A true CN103034439A (en) 2013-04-10

Family

ID=48021376

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012105064566A Pending CN103034439A (en) 2012-11-30 2012-11-30 Method and device for generating drawing file

Country Status (1)

Country Link
CN (1) CN103034439A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850408A (en) * 2015-05-28 2015-08-19 深圳市陨石通信设备有限公司 Method and device for drawing pictures on smartwatch
CN106485765A (en) * 2016-10-13 2017-03-08 中国科学院半导体研究所 A kind of method of automatic description face stick figure
CN107292221A (en) * 2016-04-01 2017-10-24 北京搜狗科技发展有限公司 A kind of trajectory processing method and apparatus, a kind of device for trajectory processing
CN107578367A (en) * 2017-04-25 2018-01-12 北京陌上花科技有限公司 A kind of generation method and device of stylized image
CN108711179A (en) * 2018-05-21 2018-10-26 张宗良 Drawing restoring method and system
CN108733290A (en) * 2018-05-21 2018-11-02 张宗良 Drawing control method, device and electronic equipment
CN108762638A (en) * 2018-05-28 2018-11-06 浙江鸿程计算机系统有限公司 A kind of secondary editing cartographic method based on Android
CN109213917A (en) * 2018-09-19 2019-01-15 百度在线网络技术(北京)有限公司 Searching method, device, computer equipment and the storage medium of 3D content
CN109671133A (en) * 2018-12-12 2019-04-23 成都四方伟业软件股份有限公司 Generation method, device, electronic equipment and the storage medium of track
WO2020210977A1 (en) * 2019-04-16 2020-10-22 深圳市柔宇科技有限公司 Local trajectory selection method, trajectory splitting and merging method, electronic device and storage medium
CN115878010A (en) * 2023-03-01 2023-03-31 南方科技大学 Operation interaction method and device, electronic equipment and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020093514A1 (en) * 2000-02-11 2002-07-18 Eric Edwards Masking tool
CN101702835A (en) * 2009-11-05 2010-05-05 中兴通讯股份有限公司 Method for realizing to handwrite messages and mobile terminal
CN201860353U (en) * 2010-10-21 2011-06-08 上海华勤通讯技术有限公司 Mobile phone with drawing pad function
CN102332172A (en) * 2010-07-12 2012-01-25 Lg电子株式会社 Method for photo editing and mobile terminal using this method
CN202197336U (en) * 2011-08-22 2012-04-18 周朝顺 Mobile phone system with drawing board function

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020093514A1 (en) * 2000-02-11 2002-07-18 Eric Edwards Masking tool
CN101702835A (en) * 2009-11-05 2010-05-05 中兴通讯股份有限公司 Method for realizing to handwrite messages and mobile terminal
CN102332172A (en) * 2010-07-12 2012-01-25 Lg电子株式会社 Method for photo editing and mobile terminal using this method
CN201860353U (en) * 2010-10-21 2011-06-08 上海华勤通讯技术有限公司 Mobile phone with drawing pad function
CN202197336U (en) * 2011-08-22 2012-04-18 周朝顺 Mobile phone system with drawing board function

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104850408A (en) * 2015-05-28 2015-08-19 深圳市陨石通信设备有限公司 Method and device for drawing pictures on smartwatch
CN107292221A (en) * 2016-04-01 2017-10-24 北京搜狗科技发展有限公司 A kind of trajectory processing method and apparatus, a kind of device for trajectory processing
CN106485765A (en) * 2016-10-13 2017-03-08 中国科学院半导体研究所 A kind of method of automatic description face stick figure
CN106485765B (en) * 2016-10-13 2019-09-03 中国科学院半导体研究所 A kind of method of automatic description face stick figure
CN107578367A (en) * 2017-04-25 2018-01-12 北京陌上花科技有限公司 A kind of generation method and device of stylized image
CN107578367B (en) * 2017-04-25 2020-10-02 北京陌上花科技有限公司 Method and device for generating stylized image
CN108711179B (en) * 2018-05-21 2022-07-19 杭州多技教育科技有限公司 Drawing reduction method and system
CN108711179A (en) * 2018-05-21 2018-10-26 张宗良 Drawing restoring method and system
CN108733290A (en) * 2018-05-21 2018-11-02 张宗良 Drawing control method, device and electronic equipment
CN108733290B (en) * 2018-05-21 2020-05-15 张宗良 Drawing control method and device and electronic equipment
CN108762638A (en) * 2018-05-28 2018-11-06 浙江鸿程计算机系统有限公司 A kind of secondary editing cartographic method based on Android
CN109213917A (en) * 2018-09-19 2019-01-15 百度在线网络技术(北京)有限公司 Searching method, device, computer equipment and the storage medium of 3D content
CN109671133A (en) * 2018-12-12 2019-04-23 成都四方伟业软件股份有限公司 Generation method, device, electronic equipment and the storage medium of track
CN113383302A (en) * 2019-04-16 2021-09-10 深圳市柔宇科技股份有限公司 Method for locally selecting track and track combination, electronic equipment and storage medium
WO2020210977A1 (en) * 2019-04-16 2020-10-22 深圳市柔宇科技有限公司 Local trajectory selection method, trajectory splitting and merging method, electronic device and storage medium
CN115878010A (en) * 2023-03-01 2023-03-31 南方科技大学 Operation interaction method and device, electronic equipment and computer-readable storage medium

Similar Documents

Publication Publication Date Title
CN103034439A (en) Method and device for generating drawing file
CN104951232B (en) It operates the method for portable terminal and supports the portable terminal of the method
EP2106652B1 (en) Portable electronic device, method, and graphical user interface for displaying electronic lists and documents
US9110585B2 (en) Method for providing user interface using drawn pattern and mobile terminal thereof
US8621391B2 (en) Device, method, and computer readable medium for maintaining a selection order in a displayed thumbnail stack of user interface elements acted upon via gestured operations
KR101834622B1 (en) Devices, methods, and graphical user interfaces for document manipulation
US20170336944A1 (en) Method for setting icon, and electronic device
CN104111787B (en) A kind of method and apparatus for realizing text editing on touch screen interface
US20150106766A1 (en) Method for quickly operating file of smart phone and smart phone
US20110164058A1 (en) Device, Method, and Graphical User Interface with Interactive Popup Views
JP2020516994A (en) Text editing method, device and electronic device
US20130257770A1 (en) Controlling and editing media files with touch gestures over a media viewing area using a touch sensitive device
TW201600980A (en) Manage event on calendar with timeline
WO2008085751A1 (en) Creating digital artwork based on content file metadata
CN101763218A (en) Input method for handheld equipment
CN105068727A (en) Realization method and device for drawing tool
CN105302784A (en) Method and system for copying/ cutting and pasting data
CN104346092A (en) Method and device used for displaying clipboard contents at mobile terminal
CN103197880B (en) The method and apparatus that keyboard is shown in the terminal with touch-screen
US20120131501A1 (en) Portable electronic device and method therefor
EP3809261A1 (en) Method for processing user-customized page and mobile device thereof
JP2017068406A (en) Electronic device and method
US11895076B2 (en) Electronic messaging platform that allows users to edit and delete messages after sending
KR20130112629A (en) Menu contolling method of media equipment, apparatus thereof, and medium storing program source thereof
JP2016532941A (en) Text selection method, apparatus and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20130410