Paint brush realizing method and device

An implementation method and brush technology, applied in the field of computer graphics, can solve problems such as complex implementation schemes, large amount of calculation, and difficulty in achieving balanced effects, and achieve the effect of wide application range, small amount of calculation, and linear smoothness

Inactive Publication Date: 2012-08-29
GUANGDONG VTRON TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, only GDI+ (Graphics Device Interface) is the graphics library that can realize the brush function. Other graphics libraries, such as gtk (GIMP Tool Kit), qt, and cairo, do not directly provide the brush function. The angle, direction and other factors of the brush are used to implement the drawing pixel operation to realize the brush function, but this implementation scheme is complicated, the amount of calculation is large, and it is difficult to achieve a balanced effect

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Paint brush realizing method and device
  • Paint brush realizing method and device
  • Paint brush realizing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The invention avoids the idea of ​​changing the brush, and realizes the brush function from the perspective of changing the drawing window. The present invention will be explained in detail below in conjunction with the accompanying drawings and embodiments.

[0018] The brush implementation method of the present invention, such as figure 1 shown, including steps:

[0019] Step 1. Set the width of the brush and the angle of inclination relative to the reference direction;

[0020] Step 2. Scale the drawing window in the vertical reference direction according to the multiple of the brush width compared to the brush width, and reversely rotate the drawing window according to the inclination angle of the brush relative to the reference direction;

[0021] Step 3, monitor the drawing operation of the mouse, scale the coordinates of the mouse in the vertical reference direction according to the multiple of the width of the brush compared to the width of the brush, and rota...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a paint brush realizing method and a paint brush realizing device. The method comprises the following steps of adjusting a painting window according to preset paint brush parameters by starting from changing the angle of the painting window; operating the paint brush to obtain the paint brush effect and realizing the paint brush function. According to the method and device provided by the invention, only the adjustment of the painting window and the response of painting operation of a mouse are referred to, the process is simple, the amount of calculation is small, the application range is wide; and moreover, the anti-aliased effect of the paint brush is reserved and the linearity is smooth.

Description

technical field [0001] The invention relates to the technical field of computer graphics, in particular to a method and device for realizing a brush. Background technique [0002] At present, only GDI+ (Graphics Device Interface) is the graphics library that can realize the brush function. Other graphics libraries, such as gtk (GIMP Tool Kit), qt, and cairo, do not directly provide the brush function. Brush angle, direction and other factors are used to implement the drawing pixel operation to realize the brush function, but this implementation scheme is complicated, the amount of calculation is large, and it is difficult to achieve a balanced effect. Contents of the invention [0003] Based on the above situation, the present invention proposes a brush implementation method and device, which implements the brush function in a simple and effective way, and is applicable to various graphics libraries. [0004] A brush implementation method, comprising steps: [0005] Set ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06T11/80
Inventor 杨阿奇
Owner GUANGDONG VTRON TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products