Paintbrush width control method and device based on Android
A brush and width technology, applied in the field of Android drawing, can solve the problems of inability to reflect changes in handwriting thickness, large time requirements, and lack of bluntness and smoothness, so as to increase code readability, reduce computational complexity and code volume.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] A kind of brush width control method based on Android provided in this embodiment, such as figure 1 , including the following steps:
[0057] S1: Capture and record the moving distance and interval time of the user's finger or touch pen in real time;
[0058] S2: Calculate the moving speed of the user's finger or touch pen;
[0059] S3: Convert to brush width according to moving speed;
[0060] S4: Use a transition function to smooth the handwriting.
[0061] Capture and record the moving distance and interval time of the user's finger or touch pen in real time in step S1, such as figure 2 , including the following steps:
[0062] S1.1: Initialize the coordinates of the current drawing point (x 0 ,y 0 ), the coordinates (x, y) of the previous drawing point are initialized to the origin (0,0), and it is judged whether the current drawing point is the initial value (0,0);
[0063] S1.2: Judging whether the current drawing point is the initial value (0,0), that is,...
Embodiment 2
[0086] A kind of brush width calculation device based on Android provided in this embodiment, such as Figure 5 ,include:
[0087] The recording module is used to capture and record the moving distance and interval time of the user's finger or touch pen in real time;
[0088] Calculation module, used to calculate the moving speed of the user's finger or touch pen;
[0089] Conversion module, convert to brush width according to moving speed;
[0090] Transition module, use transition function to smooth the handwriting.
[0091] The same or similar reference numerals correspond to the same or similar components;
[0092] The terms describing the positional relationship in the drawings are only for illustrative purposes and cannot be interpreted as limitations on this patent;
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com