CN109326150A - Implementation method, device, equipment and the storage medium of protractor tool image - Google Patents
Implementation method, device, equipment and the storage medium of protractor tool image Download PDFInfo
- Publication number
- CN109326150A CN109326150A CN201811099305.7A CN201811099305A CN109326150A CN 109326150 A CN109326150 A CN 109326150A CN 201811099305 A CN201811099305 A CN 201811099305A CN 109326150 A CN109326150 A CN 109326150A
- Authority
- CN
- China
- Prior art keywords
- degree
- pixels
- location
- graduation mark
- protractor
- 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
- G09—EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
- G09B—EDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
- G09B5/00—Electrically-operated educational appliances
- G09B5/06—Electrically-operated educational appliances with both visual and audible presentation of the material to be studied
- G09B5/065—Combinations of audio and video presentations, e.g. videotapes, videodiscs, television systems
-
- 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
- G06F3/147—Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Business, Economics & Management (AREA)
- Educational Administration (AREA)
- Educational Technology (AREA)
- Human Computer Interaction (AREA)
- General Engineering & Computer Science (AREA)
- Length-Measuring Instruments Using Mechanical Means (AREA)
Abstract
The invention discloses implementation method, device, equipment and the storage mediums of a kind of protractor tool.This method comprises: showing the image of protractor tool on an electronic device according to the image data of protractor tool;Obtain the Image Adjusting instruction of protractor tool;According to described image adjustment instruction, update in the location of pixels of the location of pixels of half-circle area of the protractor tool, the location of pixels of graduation mark and degree at least one of;According to the location of pixels of the half-circle area, the location of pixels of the location of pixels of graduation mark and degree, the image data of protractor tool is updated, and carries out the display of protractor tool according to updated image data.The present invention solves the problem of visually to influence effect of giving lessons caused by protractor tool graduation mark and degree are fuzzy when directly zooming in or out protractor tool by generating protractor tool according to the center of circle and radius at any time on electronic whiteboard.
Description
Technical field
The present embodiments relate to electronic whiteboard technology field more particularly to a kind of realization sides of protractor tool image
Method, device, equipment and storage medium.
Background technique
With being widely used for electronic equipment, interactive intelligent tablet computer is more and more extensive in daily life to be used, special
It is not in occasions such as meeting, teaching and product introductions.With the intelligent teaching in teaching field, to imparting knowledge to students, relevant software is mentioned
Higher requirement is gone out, it usually needs show virtual measuring tool on Intelligent flat, and require the virtual measurement tool
Scale value be actually consistent.
It is important that the presentation of scale, measurement unit will be shown by pixel over the display on measuring tool.
Pixel is the color point that display content is constituted on computer screen, and most of computer screens show per inch 72 or 96 pixels,
And the correspondence of " inch --- pixel --- centimetre " such a relationship is with regard to being calculated and being converted;Here according to 96
Pixel per inch is calculated, as soon as it is inch 2.54 centimetres corresponding, then actual 1cm includes 1/2.54 × 96 on screen
Pixel.
Virtual ruler can be constructed by calculating 1 centimetre of pixel occupied, that is, calculates 1mm, 1cm and corresponds to several pixels,
Virtual ruler picture is accordingly obtained to generate, is shown in the display.To the ruler in picture amplify diminution when
It waits, has only increased and decreased the range of ruler, but be still consistent with physical size.So it is virtual straight only to need from left to right to recycle increase
The length of ruler, so that it may for demonstrating the usage mode of ruler in teaching.
It is the progress scale division on a semi arch, so generating virtual angulation but for protractor tool
The scheme of device tool image is more complicated.In the prior art, the protractor tool picture for usually using a transparent background comes
The virtual process for generating protractor tool of substitution.If directly diminution is amplified using protractor tool picture, although not
Can have an impact to measurement result, but due to being limited by scale thickness, length and resolution ratio, can visually influence effect of giving lessons
Fruit.
Summary of the invention
The present invention provides implementation method, device, equipment and the storage medium of a kind of protractor tool image, to realize in electricity
The virtual protractor tool image of teaching is generated in sub- equipment.
In a first aspect, the embodiment of the invention provides a kind of implementation methods of protractor tool, comprising:
Show the image of protractor tool on an electronic device according to the image data of protractor tool;
Obtain the Image Adjusting instruction of protractor tool;
According to described image adjustment instruction, the location of pixels of the half-circle area of the protractor tool, graduation mark are updated
At least one of in the location of pixels of location of pixels and degree;
According to the location of pixels of the half-circle area, the location of pixels of the location of pixels of graduation mark and degree, angulation is updated
The image data of device tool, and according to the display of updated image data progress protractor tool.
Second aspect, the embodiment of the invention provides a kind of realization devices of protractor tool, comprising:
Protractor image display, for showing protractor on an electronic device according to the image data of protractor tool
The image of tool;
Adjustment instruction obtains module, and the Image Adjusting for obtaining protractor tool instructs;
Location of pixels update module, for updating the semicircle area of the protractor tool according to described image adjustment instruction
At least one of in the location of pixels of the location of pixels in domain, the location of pixels of graduation mark and degree;
Protractor update display module, for according to the location of pixels of the half-circle area, the location of pixels of graduation mark and
The location of pixels of degree updates the image data of protractor tool, and carries out protractor tool according to updated image data
Display.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, comprising:
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes a kind of implementation method of protractor tool as described in any embodiment.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey
Sequence realizes a kind of implementation method of protractor tool as described in any embodiment when the program is executed by processor.
The technical solution of the embodiment of the present invention can be recalculated when the protractor image virtually shown needs to be adjusted
The location of pixels of the protractors image such as the center of circle, graduation mark and scale, to be solved from newly-generated and show protractor image
When directly the adjustment such as zooming in or out to protractor tool, protractor tool graduation mark and degree it is fuzzy caused by vision
It is upper influence give lessons effect the problem of.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the implementation method for protractor tool that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart of the implementation method of protractor tool provided by Embodiment 2 of the present invention;
Fig. 3 is the effect picture of the image of protractor tool provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of schematic diagram for drawing graduation mark provided by Embodiment 2 of the present invention;
Fig. 5 is a kind of structure chart of the realization device for protractor tool that the embodiment of the present invention three provides;
Fig. 6 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention four provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 1 is a kind of flow chart of the implementation method for protractor tool that the embodiment of the present invention one provides.The present embodiment can
Suitable for showing that the scene of protractor tool image, this method can be filled by a kind of realization of protractor tool by display equipment
It sets to execute, which can realize that the device can be integrated in the electricity that can be carried out data processing by way of hardware and/or software
In sub- equipment, such as in touch-screen equipment.
Wherein, display equipment includes the equipment for being normally only used for display, such as display screen.Show that equipment also includes all kinds of touchings
Screen equipment, touch-screen equipment are a kind of induction type liquid crystal display devices of the input signals such as receivable contact, when contacting on screen
Graphic button when, the haptic feedback system on screen can drive various connection devices according to the formula of preprogramming, can be used to
Replace mechanical push button panel, and produces lively visual and sound effects by liquid crystal display picture.
With reference to Fig. 1, the present embodiment specifically comprises the following steps:
S101, the image for showing protractor tool on an electronic device according to the image data of protractor tool.
Wherein, image data is to generate the data of protractor tool institute direct basis, is commonly included in protractor tool
The pixel value of each pixel in image display area, such as gray value, color data.The image of protractor tool refers to display
The image of the directly visible protractor tool of equipment shows, user.
Specifically, the realization device of protractor tool is according to the image data of protractor tool displayed quantity on an electronic device
The image of angle device tool.
S102, the Image Adjusting instruction for obtaining protractor tool.
Wherein, Image Adjusting instruction refers to user's sending that the realization device of protractor tool obtains, and is used for adjustment amount
The instruction of the image of angle device tool, such as: scaling instruction, position move and image rotation instruction.
Specifically, whether the realization device real time monitoring user of protractor tool has input picture adjustment instruction.
S103, according to described image adjustment instruction, update location of pixels, the scale of the half-circle area of the protractor tool
At least one of in the location of pixels of line and the location of pixels of degree.
Wherein, location of pixels is the specific coordinate position of each pixel in protractor tool image.
Specifically, instructing according to the Image Adjusting that the realization device of protractor tool receives, judge that Image Adjusting instructs
Specific changed location of pixels in the protractor tool image being related to, such as the pixel position of the half-circle area of protractor tool
Set, in the location of pixels of the location of pixels of graduation mark and degree at least one of change, then according to variation update pair
The location of pixels answered.By taking scaling instruction as an example, when the image to entire protractor tool amplifies processing, graduation mark may
Become more crypto set, overstriking, can also lengthen, but in order to play the role of the angle measurement of protractor, what graduation mark can be measured
Angular dimension should be constant.This requires outline on, graduation mark and scale etc. are used in protractor tool image
It changes the position of the pixel of pattern.
S104, according to the location of pixels of the half-circle area, the location of pixels of the location of pixels of graduation mark and degree, update
The image data of protractor tool, and according to the display of updated image data progress protractor tool.
Specifically, according to the pixel of the location of pixels of changed half-circle area, the location of pixels of graduation mark and degree
The information such as position update the image data of protractor tool, and what can be updated is pixel coordinate and gray value or color value, and
Carry out the display of protractor tool image on an electronic device according to updated image data.
The embodiment of the present invention by showing protractor tool according to the electronic data of protractor tool on an electronic device
Image;The Image Adjusting instruction of protractor tool is obtained, and location of pixels is updated according to the adjustment instruction;According to it is updated more
New location of pixels updates the image data of protractor tool, and carries out the aobvious of protractor tool according to updated image data
Show.By the way that the method achieve in the usage scenario that electronic whiteboard is imparted knowledge to students, the present invention provides zoom functions, have reached satisfaction
Instructor arbitrarily adjusts the demand of protractor tool size as needed, so that learner more intuitively understands protractor tool
Construction beneficial effect.
Embodiment two
Fig. 2 is a kind of flow chart of the implementation method of protractor tool provided by Embodiment 2 of the present invention.The present embodiment is
It is refined on the basis of example 1, the update method and relevant operation, detailed description of location of pixels is described in detail
The effect of all kinds of Image Adjustings instructions and the usage mode of protractor tool.Fig. 3 is angulation provided by Embodiment 2 of the present invention
The effect picture of the image of device tool.With reference to Fig. 2, specific step is as follows for the present embodiment:
S201, the image for showing protractor tool on an electronic device according to the image data of protractor tool.
Specifically, the realization device of protractor tool is according to the image data of protractor tool displayed quantity on an electronic device
The image of angle device tool.
S202, one scaled in instruction, position move or image rotation instruction is triggered by functionality controls.
Wherein, functionality controls refer to the control button of image conversion, and user can be filled by clicking the functionality controls to realizing
Set the instruction for assigning control representative.The location of pixels of the functionality controls is overlapped with half-circle area position.As shown in figure 3, when using
When family is clicked zoom function control 203 and dragged, scaling instruction can trigger;Position locomotive function control when the user clicks
201 and when dragging, it can trigger position move;Image rotation functionality controls 202 and when being dragged when the user clicks, can touch
Send out image rotation instruction.
Specifically, user passes through click function control and drags, triggers the corresponding Image Adjusting of the functionality controls and refer to
It enables.
S203, according to described image adjustment instruction, update half-circle area position, graduation mark and the degree of the protractor tool
The display configuration parameter of at least one of number.
Wherein, as shown in figure 3, half-circle area position refers to the semicircle 204 in the figure of the protractor tool;Graduation mark
Refer to each graduation mark in the figure of the protractor tool;Degree refers to be used to embody in the figure of the protractor tool
The degree for the angle that graduation mark represents.Display configuration parameter is former protractor tool after assigning Image Adjusting instruction because of user
Image generate variation and need to the configuration parameter that is adjusted of display image, display configuration parameter can be used for specific calculating figure
As the data of pixel.For example, the display configuration parameter of half-circle area position specifically can be centre point coordinate and outer profile radius
Deng.The display configuration parameter of graduation mark specifically can be length and thickness variation of graduation mark etc..The display configuration parameter of degree
The variation etc. of degree is shown caused by specifically can be the size of degree and change due to protractor tool size.
Specifically, analyzing user after the realization device of protractor tool receives the Image Adjusting instruction that user assigns
The Image Adjusting instruction meeting assigned is so which place changes in the image of protractor tool, according to variation update
The display configuration parameter of at least one of half-circle area position, graduation mark and the degree of protractor tool.
S204, according to it is described display configuration parameter recalculate the protractor tool half-circle area location of pixels,
At least one of in the location of pixels of graduation mark and the location of pixels of degree.
Specifically, can be generated aobvious after the realization device of protractor tool receives the Image Adjusting instruction that user assigns
Show configuration parameter, location of pixels is calculated according to display configuration parameter, image data is generated according to location of pixels, according to image data
Show the protractor tool.
S205, according to the location of pixels of the half-circle area, the location of pixels of the location of pixels of graduation mark and degree, update
The image data of protractor tool, and according to the display of updated image data progress protractor tool.
Specifically, the realization device of protractor tool is according to the location of pixels of changed half-circle area, graduation mark
The information such as the location of pixels of location of pixels and degree, other in conjunction with electronic equipment need data, update the figure of protractor tool
As data, and the display of protractor tool is carried out according to updated image data on an electronic device.
S206, the location of pixels that at least one measuring rod is added in the image data of the protractor tool.
Wherein, as shown in Figure 3.Measuring rod 205 is the bar that one end is connected with the protractor tool center of circle, the measuring rod other end
It is removable.
Specifically, the image data in protractor tool can add a measuring rod or two measuring rods.
S207, update is adjusted to the location of pixels of the measuring rod according to angle measurement instruction.
Specifically, working as user's operation measuring rod, when so that the position of measuring rod changing, according to angle measurement instruction pair
The location of pixels of the measuring rod is adjusted update, so that the position of measuring rod changes in the image of protractor tool.
S208, according to adjustment update after at least one measuring rod location of pixels, determine position and the amount of the measuring rod
The measurement angle between measurement angle or two measuring rods between the device tool criteria position of angle.
Angle measurement is carried out specifically, adjusting protractor and treating resolution chart, by the center of circle of protractor and figure to be tested
Apex angle be overlapped, if the zero graduation mark of protractor is overlapped with a line of figure to be tested, only need to adjust a measurement
Bar is overlapped with the another side of figure to be tested;If the zero graduation mark of protractor not with a line weight of figure to be tested
It closes, then adjusts being overlapped on one side for a measuring rod and figure to be tested, another measuring rod of adjusting is another with figure to be tested
Side is overlapped.
On the basis of the above embodiments, step S204 can be refined are as follows: according to the display size of the protractor tool
Parameter determines the half-circle area position of protractor tool, wherein the half-circle area position data includes the center of circle, semi arch, quarter
Spend the position of line display area and degree display area;It is aobvious in the graduation mark according to the display configuration parameter of the graduation mark
Show in region, determines the corresponding location of pixels of protractor tool graduation mark for being directed toward the center of circle since the semi arch;Root
According to the display configuration parameter of the degree, in the degree display area, the corresponding pixel of the degree of protractor tool is determined
Position.
Specifically, in the graduation mark display area, being determined described according to the display configuration parameter of the graduation mark
The corresponding location of pixels of protractor tool graduation mark that semi arch starts to be directed toward the center of circle includes: to connect in graduation mark display area
Connect the initial coordinate point and end coordinate point of each graduation mark, the location of pixels as each graduation mark of protractor tool;Wherein,
The radius, preceding graduation mark and benchmark that the initial coordinate point of each graduation mark and the location of pixels of end coordinate point pass through half-circle area
The setting length computation of angle and protractor tool graduation mark between line obtains;Protractor tool graduation mark includes integer scale
Line and score graduation mark;Wherein corresponding first length of integer graduation mark, corresponding second length of score graduation mark.
Fig. 4 is a kind of schematic diagram for drawing graduation mark provided by Embodiment 2 of the present invention.It basically describes how known
The Origin And Destination of inclined graduation mark is determined in the case where scale line length.With reference to Fig. 4, protractor graduation mark includes that integer is carved
Spend line and score graduation mark;Wherein corresponding first length of integer graduation mark, the second length of score graduation mark.It is with arbitrary scale line
Example, it is known that the length of graduation mark is L, and the angle of graduation mark and horizontal plane is θ, and r is the radius of half-circle area.So graduation mark
Initial coordinate point coordinate (x1, y1) be represented by,Knot
Beam coordinate points coordinate isDue to knowing θ
Angular dimension, when θ be 10 multiple when, L be the first length, the as one scale line segment slightly longer than the second length;When θ not
For 10 multiple when, then take L be the second length calculated.
Specifically, in the degree display area, determining protractor tool according to the display configuration parameter of the degree
The corresponding location of pixels of degree comprise determining that degree graduation mark to be shown;According to the degree graduation mark to be shown and the center of circle
Line, the position intersected with degree display area determines the display position of protractor tool degree;According to the degree to be shown
Angle between number graduation mark and reference line, determines the degree value of protractor tool degree and the rotation angle of degree value;Root
The corresponding location of pixels of degree is determined according to the rotation angle and display position.
Specifically, the degree includes positive angle degree and reverse angle degree;The forward direction angle degree and reverse
Angle degree be located in positive U Degree U display area and reverse degree display area in.
On the basis of the above embodiments, step S201- step S205 describes the amount that user shows display equipment
After angle device tool assigns Image Adjusting instruction, display equipment generates the detailed process of the image of new protractor tool:
First, when Image Adjusting instruction may instruct for scaling.The semicircle area is then updated according to scaling instruction
The display size parameter of domain position;According to the size of updated half-circle area, the quarter is calculated according to setting graduation mark rule
Spend the length and/or spacing distance of line;And/or the size according to updated half-circle area, it is calculated according to setting degree rule
The spacer unit value and/or text size of the degree.
Specifically, when the realization device of protractor tool receives the scaling instruction of user's triggering, protractor tool
Realization device updates the display size parameter of the half-circle area position first, such as the half-circle area of protractor tool before updating
Radius is R0, after receiving scaling instruction, the radius of the half-circle area of protractor tool becomes R1.According to the radius of half-circle area
For R1Spacing distance between the length and graduation mark of computing scale line.It is simultaneously R according to the radius of half-circle area1Calculate degree
Text size and degree between spacing distance.The semi arch in the position data of half-circle area, graduation mark are aobvious in the case
Show that region and the position of degree display area change.But 0 ° of protractor tool connect constituted line segment institute with the center of circle
Straight line and horizontal angle do not generate variation, meanwhile, the center location of protractor tool does not also change.
Radius with half-circle area is R1The display size parameter of calculated half-circle area position, the length of graduation mark,
The radius of spacing distance and half-circle area between the text size and degree of spacing distance, degree between graduation mark is R0When
The variable quantity between each data calculated is to show configuration parameter.
The realization device of protractor tool recalculates the picture of the half-circle area of protractor tool according to display configuration parameter
Plain position, the location of pixels of graduation mark and degree location of pixels.Each pixel in protractor tool image after being updated
The specific coordinate position of point.And according to the location of pixels of the half-circle area, the location of pixels of the location of pixels of graduation mark and degree,
The image data of protractor tool is updated, the total data for generating protractor tool institute direct basis is obtained, is included in protractor
The pixel value of each pixel in the image display area of tool, such as gray value, color data.And according to updated image
Data display receives the image of the protractor tool after scaling instruction.
Second, when Image Adjusting instruction may be position move.Institute is then updated according to the position move
State half-circle area position coordinates;The picture of the graduation mark and/or degree is updated according to the position coordinates of updated half-circle area
Plain position coordinates.
When the realization device of protractor tool receives the position move of user's triggering, the realization of protractor tool
Device updates the display size parameter of the half-circle area position first, and the radius of such as half-circle area of current protractor tool is
R0, after receiving position move, the radius of the half-circle area of protractor tool does not change.Therefore, according to semicircle area
The radius in domain is R0Spacing distance between the length and graduation mark of computing scale line does not change.Simultaneously according to half-circle area
Radius be R0The spacing distance calculated between the text size and degree of degree does not change.Half-circle area in the case
Semi arch, graduation mark display area and degree display area in position data do not change with the relative position in the center of circle
Become.Meanwhile the center location of protractor tool does not also change.But 0 ° of protractor tool connect constituted line with the center of circle
Straight line and horizontal angle where section do not generate variation.
Before being changed with center location, the radius with half-circle area is R0The display ruler of calculated half-circle area position
Very little parameter, the length of graduation mark, the spacing distance between graduation mark, degree text size and degree between spacing distance with
Center location change rear semicircle region radius be R0When each data for calculating between variable quantity be to show
Configuration parameter.
The realization device of protractor tool recalculates the picture of the half-circle area of protractor tool according to display configuration parameter
Plain position, the location of pixels of graduation mark and degree location of pixels.Each pixel in protractor tool image after being updated
The specific coordinate position of point.And according to the location of pixels of the half-circle area, the location of pixels of the location of pixels of graduation mark and degree,
The image data of protractor tool is updated, the total data for generating protractor tool institute direct basis is obtained, is included in protractor
The pixel value of each pixel in the image display area of tool, such as gray value, color data.And according to updated image
Data display receives the image of the protractor tool after the move of position.
Third, when Image Adjusting instruction may instruct for image rotation.Instruction is then rotated according to described image and updates institute
State half-circle area position coordinates;The picture of the graduation mark and/or degree is updated according to the position coordinates of updated half-circle area
Plain position coordinates.
When the realization device of protractor tool receives the image rotation instruction of user's triggering, the realization of protractor tool
Device updates the display size parameter of the half-circle area position first, and the radius of such as half-circle area of current protractor tool is
R0, after receiving image rotation instruction, the radius of the half-circle area of protractor tool does not change.Therefore, according to semicircle area
The radius in domain is R0Spacing distance between the length and graduation mark of computing scale line does not change.Simultaneously according to half-circle area
Radius be R0The spacing distance calculated between the text size and degree of degree does not change.Half-circle area in the case
Semi arch, graduation mark display area and degree display area in position data do not change with the relative position in the center of circle
Become.Meanwhile the center location of protractor tool does not also change.But 0 ° of protractor tool connect constituted line with the center of circle
Straight line and horizontal angle where section do not generate variation.
Before being changed with the straight line where 0 ° with horizontal angle, the radius with half-circle area is R0Calculated half
The circle display size parameter of regional location, the length of graduation mark, the text size and degree of the spacing distance between graduation mark, degree
The straight line of spacing distance and 0 ° of place between number generates variation with horizontal angle, and the radius in rear semicircle region is R0When count
The variable quantity between each data calculated is to show configuration parameter.
The realization device of protractor tool recalculates the picture of the half-circle area of protractor tool according to display configuration parameter
Plain position, the location of pixels of graduation mark and degree location of pixels.Each pixel in protractor tool image after being updated
The specific coordinate position of point.And according to the location of pixels of the half-circle area, the location of pixels of the location of pixels of graduation mark and degree,
The image data of protractor tool is updated, the total data for generating protractor tool institute direct basis is obtained, is included in protractor
The pixel value of each pixel in the image display area of tool, such as gray value, color data.And according to updated image
Data display receives the image of the protractor tool after image rotation instruction.
The embodiment of the present invention by showing protractor tool according to the electronic data of protractor tool on an electronic device
Image;The Image Adjusting instruction of protractor tool is obtained, and location of pixels is updated according to the adjustment instruction;According to it is updated more
New location of pixels updates the image data of protractor tool, and carries out the aobvious of protractor tool according to updated image data
Show.On this basis, it further describes the update method of location of pixels and relevant operation, all kinds of Image Adjustings is described in detail
The effect of instruction and the usage mode of protractor tool.On this basis, at least one is increased on the image of protractor tool
Root measuring rod, for assisting user to show the usage mode of protractor.On this basis, increase on the image of protractor tool
Function button is added, for assisting user quickly to assign Image Adjusting instruction.By the way that the method achieve impart knowledge to students in electronic whiteboard
Usage scenario in, the present invention provides zoom function, reached meet instructor as needed arbitrarily adjust protractor work
Has the demand of size, so that learner more intuitively understands the beneficial effect of the construction of protractor tool.
Embodiment three
Fig. 5 is a kind of structure chart of the realization device for protractor tool that the embodiment of the present invention three provides.The device includes:
Protractor image display 31, adjustment instruction obtain module 32, location of pixels update module 33 and protractor and update display mould
Block 34.Wherein:
Protractor image display 31, for showing angulation on an electronic device according to the image data of protractor tool
The image of device tool;
Adjustment instruction obtains module 32, and the Image Adjusting for obtaining protractor tool instructs;
Location of pixels update module 33, for updating the semicircle of the protractor tool according to described image adjustment instruction
At least one of in the location of pixels of the location of pixels in region, the location of pixels of graduation mark and degree;
Protractor updates display module 34, for the location of pixels according to the location of pixels of the half-circle area, graduation mark
With the location of pixels of degree, the image data of protractor tool is updated, and protractor work is carried out according to updated image data
The display of tool.
The embodiment of the present invention by showing protractor tool according to the electronic data of protractor tool on an electronic device
Image;The Image Adjusting instruction of protractor tool is obtained, and location of pixels is updated according to the adjustment instruction;According to it is updated more
New location of pixels updates the image data of protractor tool, and carries out the aobvious of protractor tool according to updated image data
Show.By the way that the method achieve in the usage scenario that electronic whiteboard is imparted knowledge to students, the present invention provides zoom functions, have reached satisfaction
Instructor arbitrarily adjusts the demand of protractor tool size as needed, so that learner more intuitively understands protractor tool
Construction beneficial effect.
On the basis of the above embodiments, location of pixels update module is also used to:
The half-circle area position of protractor tool is determined according to the display size parameter of the protractor tool, wherein institute
State the position that half-circle area position data includes the center of circle, semi arch, graduation mark display area and degree display area;
According to the display configuration parameter of the graduation mark, in the graduation mark display area, determine from the semi arch
Start the corresponding location of pixels of protractor tool graduation mark for being directed toward the center of circle;
The degree of protractor tool is determined in the degree display area according to the display configuration parameter of the degree
Corresponding location of pixels.
On the basis of the above embodiments, according to the display configuration parameter of graduation mark, in the graduation mark display area,
Determine that the corresponding location of pixels of protractor tool graduation mark that the center of circle is directed toward since the semi arch includes:
The initial coordinate point and end coordinate point of each graduation mark are connected in graduation mark display area, as protractor tool
The location of pixels of each graduation mark;
Wherein, the location of pixels of the initial coordinate point of each graduation mark and end coordinate point by the radius of half-circle area,
The setting length computation of angle and protractor tool graduation mark between preceding graduation mark and reference line obtains;
Protractor tool graduation mark includes integer graduation mark and score graduation mark;Wherein integer graduation mark corresponding first is long
Degree, corresponding second length of score graduation mark.
On the basis of the above embodiments, it according to the display configuration parameter of degree, in the degree display area, determines
The corresponding location of pixels of the degree of protractor tool includes:
Determine degree graduation mark to be shown;
According to the line of the degree graduation mark and the center of circle to be shown, the position intersected with degree display area determines angulation
The display position of device tool degree;
According to the angle between the degree graduation mark to be shown and reference line, the degree of protractor tool degree is determined
The rotation angle of value and degree value;
The corresponding location of pixels of degree is determined according to the rotation angle and display position.
On the basis of the above embodiments,
The degree includes positive angle degree and reverse angle degree;
The forward direction angle degree and reverse angle degree are located in positive U Degree U display area and reverse degree is aobvious
Show in region.
On the basis of the above embodiments, further include measuring rod control module, be used for
The location of pixels of at least one measuring rod is added in the image data of the protractor tool;
Update is adjusted to the location of pixels of the measuring rod according to angle measurement instruction;
The location of pixels of at least one measuring rod after being updated according to adjustment determines position and the protractor work of the measuring rod
Have the measurement angle between base position or the measurement angle between two measuring rods.
On the basis of the above embodiments, the location of pixels update module is also used to:
If detect that described image adjustment instruction instructs for scaling, the semicircle is updated according to scaling instruction
The display size parameter of regional location;
The display configuration parameter of the graduation mark and/or degree is updated according to updated half-circle area.
On the basis of the above embodiments, the aobvious of the graduation mark and/or degree is updated according to updated half-circle area
Show that configuration parameter includes:
According to the size of updated half-circle area, according to setting graduation mark rule calculate the graduation mark length and/
Or spacing distance;And/or
According to the size of updated half-circle area, the spacer unit value of the degree is calculated according to setting degree rule
And/or text size.
On the basis of the above embodiments, the location of pixels update module is also used to:
If detect that described image adjustment instruction is position move, updated according to the position move
The half-circle area position coordinates;
The location of pixels coordinate of the graduation mark and/or degree is updated according to the position coordinates of updated half-circle area.
On the basis of the above embodiments, the location of pixels update module is also used to:
If detect that described image adjustment instruction is image rotation instruction, instruction is rotated according to described image and is updated
The half-circle area position coordinates;
The location of pixels coordinate of the graduation mark and/or degree is updated according to the position coordinates of updated half-circle area
On the basis of the above embodiments, the adjustment instruction obtains module and is also used to:
One in scaling instruction, position move or image rotation instruction is triggered by functionality controls;Wherein, described
The location of pixels of functionality controls is overlapped with half-circle area position.
A kind of realization device of protractor tool provided in this embodiment can be used for executing what above-mentioned any embodiment provided
A kind of implementation method of protractor tool has corresponding function and beneficial effect.
Example IV
Fig. 6 is the structural schematic diagram for a kind of electronic equipment that the embodiment of the present invention four provides.As shown in fig. 6, the electronics is set
Standby includes processor 40, memory 41, communication module 42, input unit 43 and output device 44;Processor 40 in electronic equipment
Quantity can be one or more, in Fig. 6 by taking a processor 40 as an example;Processor 40, memory 41 in electronic equipment,
Communication module 42, input unit 43 and output device 44 can be connected by bus or other modes, to be connected by bus in Fig. 6
It is connected in example.
Memory 41 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if the corresponding module of implementation method of one of the present embodiment protractor tool is (for example, a kind of protractor work
Protractor image display 31, adjustment instruction in the realization device of tool obtain module 32,33 and of location of pixels update module
Protractor updates display module 34).Software program, instruction and the mould that processor 40 is stored in memory 41 by operation
Block realizes a kind of reality of above-mentioned protractor tool thereby executing the various function application and data processing of electronic equipment
Existing method.
Memory 41 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data according to electronic equipment
Deng.In addition, memory 41 may include high-speed random access memory, it can also include nonvolatile memory, for example, at least
One disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 41 can
It further comprise the memory remotely located relative to processor 40, these remote memories can pass through network connection to electronics
Equipment.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Communication module 42 for establishing connection with display screen, and realizes the data interaction with display screen.Input unit 43 can
Number for receiving input or character information, and generate key related with the user setting of electronic equipment and function control
Signal input.
The reality for the protractor tool that any embodiment of that present invention provides can be performed in a kind of electronic equipment provided in this embodiment
Existing method, specific corresponding function and beneficial effect.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
Row is instructed when being executed by computer processor for executing a kind of implementation method of protractor tool, this method comprises:
Show the image of protractor tool on an electronic device according to the image data of protractor tool;
Obtain the Image Adjusting instruction of protractor tool;
According to described image adjustment instruction, the location of pixels of the half-circle area of the protractor tool, graduation mark are updated
At least one of in the location of pixels of location of pixels and degree;
According to the location of pixels of the half-circle area, the location of pixels of the location of pixels of graduation mark and degree, angulation is updated
The image data of device tool, and according to the display of updated image data progress protractor tool.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed online drawing provided by any embodiment of the invention
Relevant operation in the method for audit.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are used so that a calculatings electromechanics
Sub- equipment (can be personal computer, server or network electronic devices etc.) executes described in each embodiment of the present invention
Method.
It is worth noting that, in the embodiment of the realization device of above-mentioned protractor tool, included each unit and mould
Block is only divided according to the functional logic, but is not limited to the above division, and is as long as corresponding functions can be realized
It can;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection model being not intended to restrict the invention
It encloses.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (15)
1. a kind of implementation method of protractor tool characterized by comprising
Show the image of protractor tool on an electronic device according to the image data of protractor tool;
Obtain the Image Adjusting instruction of protractor tool;
According to described image adjustment instruction, the location of pixels of the half-circle area of the protractor tool, the pixel of graduation mark are updated
At least one of in the location of pixels of position and degree;
According to the location of pixels of the half-circle area, the location of pixels of the location of pixels of graduation mark and degree, protractor work is updated
The image data of tool, and according to the display of updated image data progress protractor tool.
2. the method according to claim 1, wherein updating the protractor according to described image adjustment instruction
In the location of pixels of the location of pixels of the half-circle area of tool, the location of pixels of graduation mark and degree at least one of include:
According to described image adjustment instruction, update in half-circle area position, graduation mark and the degree of the protractor tool at least
One display configuration parameter;
The location of pixels of the half-circle area of the protractor tool, the picture of graduation mark are recalculated according to the display configuration parameter
At least one of in the location of pixels of plain position and degree.
3. according to the method described in claim 2, it is characterized in that, recalculating the angulation according to the display configuration parameter
In the location of pixels of the location of pixels of the half-circle area of device tool, the location of pixels of graduation mark and degree at least one of include:
The half-circle area position of protractor tool is determined according to the display size parameter of the protractor tool, wherein described half
Circle regional location data include the position of the center of circle, semi arch, graduation mark display area and degree display area;
According to the display configuration parameter of the graduation mark, in the graduation mark display area, determine since the semi arch
It is directed toward the corresponding location of pixels of protractor tool graduation mark in the center of circle;
According to the display configuration parameter of the degree, in the degree display area, determine that the degree of protractor tool is corresponding
Location of pixels.
4. according to the method described in claim 3, it is characterized in that, according to the display configuration parameter of graduation mark, in the scale
In line display area, the corresponding location of pixels of protractor tool graduation mark that the center of circle is directed toward since the semi arch is determined
Include:
The initial coordinate point and end coordinate point of each graduation mark are connected in graduation mark display area, it is each as protractor tool
The location of pixels of graduation mark;
Wherein, radius by half-circle area of the initial coordinate point of each graduation mark and the location of pixels of end coordinate point, preceding quarter
The setting length computation of angle and protractor tool graduation mark between degree line and reference line obtains;
Protractor tool graduation mark includes integer graduation mark and score graduation mark;Wherein corresponding first length of integer graduation mark, point
Corresponding second length of number graduation mark.
5. according to the method described in claim 2, it is characterized in that, being shown according to the display configuration parameter of degree in the degree
Show in region, determines that the corresponding location of pixels of the degree of protractor tool includes:
Determine degree graduation mark to be shown;
According to the line of the degree graduation mark and the center of circle to be shown, the position intersected with degree display area determines protractor work
Has the display position of degree;
According to the angle between the degree graduation mark to be shown and reference line, the degree value of protractor tool degree is determined, with
And the rotation angle of degree value;
The corresponding location of pixels of degree is determined according to the rotation angle and display position.
6. according to the method described in claim 5, it is characterized by:
The degree includes positive angle degree and reverse angle degree;
The forward direction angle degree and reverse angle degree are located in positive U Degree U display area and reverse degree viewing area
In domain.
7. the method according to claim 1, wherein further include:
The location of pixels of at least one measuring rod is added in the image data of the protractor tool;
Update is adjusted to the location of pixels of the measuring rod according to angle measurement instruction;
The location of pixels of at least one measuring rod after being updated according to adjustment determines position and the protractor tool base of the measuring rod
Level set between measurement angle or two measuring rods between measurement angle.
8. according to the method described in claim 2, it is characterized in that, updating the protractor according to described image adjustment instruction
The display configuration parameter of at least one of half-circle area position, graduation mark and the degree of tool includes:
If detect that described image adjustment instruction instructs for scaling, the half-circle area is updated according to scaling instruction
The display size parameter of position;
The display configuration parameter of the graduation mark and/or degree is updated according to updated half-circle area.
9. according to the method described in claim 8, it is characterized in that, updating the graduation mark according to updated half-circle area
And/or the display configuration parameter of degree includes:
According to the size of updated half-circle area, according to setting graduation mark rule calculate the graduation mark length and/or
Gauge from;And/or
According to the size of updated half-circle area, according to setting degree rule calculate the degree spacer unit value and/or
Text size.
10. according to the method described in claim 2, it is characterized in that, updating the protractor according to described image adjustment instruction
The display configuration parameter of at least one of half-circle area position, graduation mark and the degree of tool includes:
If detect that described image adjustment instruction is position move, according to position move update
Half-circle area position coordinates;
The location of pixels coordinate of the graduation mark and/or degree is updated according to the position coordinates of updated half-circle area.
11. according to the method described in claim 2, it is characterized in that, updating the protractor according to described image adjustment instruction
The display configuration parameter of at least one of half-circle area position, graduation mark and the degree of tool includes:
If detect that described image adjustment instruction is image rotation instruction, is rotated and instructed described in update according to described image
Half-circle area position coordinates;
The location of pixels coordinate of the graduation mark and/or degree is updated according to the position coordinates of updated half-circle area.
12. the method according to claim 1, wherein the Image Adjusting for obtaining protractor tool instructs packet
It includes:
One in scaling instruction, position move or image rotation instruction is triggered by functionality controls;Wherein, the function
The location of pixels of control is overlapped with half-circle area position.
13. a kind of realization device of protractor tool characterized by comprising
Protractor image display, for showing protractor tool on an electronic device according to the image data of protractor tool
Image;
Adjustment instruction obtains module, and the Image Adjusting for obtaining protractor tool instructs;
Location of pixels update module, for updating the half-circle area of the protractor tool according to described image adjustment instruction
At least one of in the location of pixels of location of pixels, the location of pixels of graduation mark and degree;
Protractor updates display module, for according to the location of pixels of the half-circle area, the location of pixels of graduation mark and degree
Location of pixels, update the image data of protractor tool, and the aobvious of protractor tool is carried out according to updated image data
Show.
14. a kind of electronic equipment characterized by comprising
One or more processors;
Memory, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
A kind of existing implementation method of protractor tool as claimed in claim 1.
15. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor
A kind of implementation method of protractor tool as claimed in claim 1 is realized when execution.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811099305.7A CN109326150A (en) | 2018-09-20 | 2018-09-20 | Implementation method, device, equipment and the storage medium of protractor tool image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811099305.7A CN109326150A (en) | 2018-09-20 | 2018-09-20 | Implementation method, device, equipment and the storage medium of protractor tool image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109326150A true CN109326150A (en) | 2019-02-12 |
Family
ID=65265086
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811099305.7A Pending CN109326150A (en) | 2018-09-20 | 2018-09-20 | Implementation method, device, equipment and the storage medium of protractor tool image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109326150A (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050052454A1 (en) * | 2003-09-05 | 2005-03-10 | Canon Kabushiki Kaisha | Information processing system, information processing method, storage medium, and program |
CN101325040A (en) * | 2008-07-16 | 2008-12-17 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal capable of adjusting resolution and method for adjusting resolution of the mobile terminal |
GB201100507D0 (en) * | 2011-01-12 | 2011-02-23 | Promethean Ltd | Common user interface resources |
CN102163129A (en) * | 2011-04-26 | 2011-08-24 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for implementing icon deformation |
CN102262508A (en) * | 2011-07-21 | 2011-11-30 | 福州锐达数码科技有限公司 | Method for generating measuring tool by mouse track |
CN103940375A (en) * | 2014-04-14 | 2014-07-23 | 珠海金山网络游戏科技有限公司 | Angle measuring method and device and electronic equipment |
BR102013023645A2 (en) * | 2013-09-16 | 2016-03-15 | Univ Estadual Londrina | coded ruler for image standardization |
JP5945170B2 (en) * | 2012-06-25 | 2016-07-05 | シャープ株式会社 | Electronic device, method for displaying image on electronic device, and program for realizing the method |
CN107589937A (en) * | 2017-08-28 | 2018-01-16 | 锐达互动科技股份有限公司 | A kind of method that simulation function of angle gauge is realized based on virtual technology |
-
2018
- 2018-09-20 CN CN201811099305.7A patent/CN109326150A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050052454A1 (en) * | 2003-09-05 | 2005-03-10 | Canon Kabushiki Kaisha | Information processing system, information processing method, storage medium, and program |
CN101325040A (en) * | 2008-07-16 | 2008-12-17 | 宇龙计算机通信科技(深圳)有限公司 | Mobile terminal capable of adjusting resolution and method for adjusting resolution of the mobile terminal |
GB201100507D0 (en) * | 2011-01-12 | 2011-02-23 | Promethean Ltd | Common user interface resources |
CN102163129A (en) * | 2011-04-26 | 2011-08-24 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for implementing icon deformation |
CN102262508A (en) * | 2011-07-21 | 2011-11-30 | 福州锐达数码科技有限公司 | Method for generating measuring tool by mouse track |
JP5945170B2 (en) * | 2012-06-25 | 2016-07-05 | シャープ株式会社 | Electronic device, method for displaying image on electronic device, and program for realizing the method |
BR102013023645A2 (en) * | 2013-09-16 | 2016-03-15 | Univ Estadual Londrina | coded ruler for image standardization |
CN103940375A (en) * | 2014-04-14 | 2014-07-23 | 珠海金山网络游戏科技有限公司 | Angle measuring method and device and electronic equipment |
CN107589937A (en) * | 2017-08-28 | 2018-01-16 | 锐达互动科技股份有限公司 | A kind of method that simulation function of angle gauge is realized based on virtual technology |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8730183B2 (en) | Large scale multi-user, multi-touch system | |
US8294710B2 (en) | Extensible map with pluggable modes | |
US20110055729A1 (en) | User Interface for a Large Scale Multi-User, Multi-Touch System | |
AU2014235416B2 (en) | Real world analytics visualization | |
EP2973355B1 (en) | Campaign optimization for experience content dataset | |
JP5496032B2 (en) | Tactile sensation presentation apparatus and control method for tactile sensation presentation apparatus | |
BR102012014089A2 (en) | LIST DISPLAY APPARATUS, LIST DISPLAY CONTROL METHOD, AND INFORMATION STORAGE | |
CN103310474A (en) | Method and system for implementing original handwriting | |
JPH05282002A (en) | Input device | |
WO2011029067A2 (en) | Large scale multi-user, multi-touch system | |
CN112100795B (en) | Computer aided design drawing comparison method and device | |
US20140267407A1 (en) | Segmentation of content delivery | |
CN109564496B (en) | Interactive display overlay system and related method | |
CN110287442A (en) | A kind of determination method, apparatus, electronic equipment and the storage medium of influence power ranking | |
CN102262508A (en) | Method for generating measuring tool by mouse track | |
CN104412213A (en) | Image display device and image display system | |
US20160357395A1 (en) | Information processing device, non-transitory computer-readable recording medium storing an information processing program, and information processing method | |
CN109326150A (en) | Implementation method, device, equipment and the storage medium of protractor tool image | |
JP6722240B2 (en) | Information processing apparatus, information processing program, information processing method, and information processing system | |
JP2014165589A5 (en) | ||
US11321897B2 (en) | Method for generating video data, video data generation device, and program | |
US11574113B2 (en) | Electronic apparatus, information processing method, and recording medium | |
JP7047562B2 (en) | Programs, information processing methods, information terminals and information processing systems | |
JP2015007906A (en) | Display device and display method | |
JP2007310728A (en) | Document position correction method and program for making computer execute the method |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190212 |