Home > Software engineering >  Vb use gdi technology take the stroke sequence of Chinese characters, and shows how to make each str
Vb use gdi technology take the stroke sequence of Chinese characters, and shows how to make each str

Time:10-23

Vb use gdi technology take the stroke sequence of Chinese characters, and shows how to make each stroke of the writing process, gdi API function a lot of, didn't also function introduction, please master to give directions, who have the vb gdi API function is introduced to sharing,
'GraphicsPath Functions provides (ALL)
Public Declare Function GdipCreatePath Lib "gdiplus" (ByVal brushmode As FillMode, path As Long) As GpStatus
'NOTE: The types of The parameter is treated as a byte array
Public Declare Function GdipCreatePath2 Lib "gdiplus" (Points As POINTF types As Any, ByVal count As Long, brushmode As FillMode, path As Long) As GpStatus
Public Declare Function GdipCreatePath2I Lib "gdiplus" (Points As POINTL types As Any, ByVal count As Long, brushmode As FillMode, path As Long) As GpStatus
Public Declare Function GdipClonePath Lib "gdiplus" (ByVal path As Long, clonePath As Long) As GpStatus
Public Declare Function GdipDeletePath Lib "gdiplus" (ByVal path As Long) As GpStatus
Public Declare Function GdipResetPath Lib "gdiplus" (ByVal path As Long) As GpStatus
Public Declare Function GdipGetPointCount Lib "gdiplus" (ByVal path As Long, count As Long) As GpStatus
'NOTE: The types of The parameter is treated as a byte array
Public Declare Function GdipGetPathTypes Lib "gdiplus" (ByVal path As Long, types As Any, ByVal count As Long) As GpStatus
Public Declare Function GdipGetPathPoints Lib "gdiplus" (ByVal path As Long, Points As POINTF, ByVal count As Long) As GpStatus
Public Declare Function GdipGetPathPointsI Lib "gdiplus" (ByVal path As Long, Points As POINTL, ByVal count As Long) As GpStatus
Public Declare Function GdipGetPathFillMode Lib "gdiplus" (ByVal path As Long, ByVal brushmode As FillMode) As GpStatus
Public Declare Function GdipSetPathFillMode Lib "gdiplus" (ByVal path As Long, ByVal brushmode As FillMode) As GpStatus
Public Declare Function GdipGetPathData Lib "gdiplus" (ByVal path As Long, pdata As PathData) As GpStatus
Public Declare Function GdipStartPathFigure Lib "gdiplus" (ByVal path As Long) As GpStatus' not to close the current subpaths, started a new subpath
Public Declare Function GdipClosePathFigure Lib "gdiplus" (ByVal path As Long) As GpStatus
Public Declare Function GdipClosePathFigures Lib "gdiplus" (ByVal path As Long) As GpStatus
Public Declare Function GdipSetPathMarker Lib "gdiplus" (ByVal path As Long) As GpStatus
Public Declare Function GdipClearPathMarkers Lib "gdiplus" (ByVal path As Long) As GpStatus
Public Declare Function GdipReversePath Lib "gdiplus" (ByVal path As Long) As GpStatus
Public Declare Function GdipGetPathLastPoint Lib "gdiplus" (ByVal path, As Long As lastPoint POINTF) As GpStatus

CodePudding user response:

Stroke order could be obtained with GDI? Fresh,,,,

CodePudding user response:

Of course, can completely,

CodePudding user response:

LZ is superior, ha ha, those functions should be GDI +, not a GDI

CodePudding user response:

This should be done,

CodePudding user response:

P is defined, all have to use?

CodePudding user response:

Perhaps I informed, I think it is not possible

CodePudding user response:

Refer to
Stroke break down
software

CodePudding user response:

I also felt that the original poster is kidding

CodePudding user response:

refer to the second floor lj77916 response:
of course, can be completely,

Have any can extract the stroke order API for advice

CodePudding user response:

refer to 6th floor hpygzhx520 response:
perhaps I informed, I think it is impossible to

The same way...

CodePudding user response:

The key is to extract stroke and its relative location algorithm,

Chinese characters stroke order rules is very neat,

If we can make the order of the stroke extraction in line with the stroke order rule, it will get twice the result with half the effort,

CodePudding user response:

And, of course, there is a way, that is, using pattern recognition to recognize Chinese characters, to the database to check the stroke order information,

And then using the word stroke, stroke order information decomposition such difficulty will be smaller,

CodePudding user response:

Font itself is not the concept of "stroke" and "words", it is an integral part of the lattice figure or vector diagram.

I don't think system have this API can get stroke stroke order, in addition to the above write their own of123 said.

Willing to listen to the original poster said.

CodePudding user response:

Can only be built artificial stroke order library, and then use color to distinguish different strokes (scan again to build stroke lattice coordinates library), a combination of these can make the teaching software (CAI)

CodePudding user response:

actually stroke can take, but the order is to say, Microsoft OFFICE WORD 2330 regular script can split _GB2312 vector information into a primitive and isolated each stroke, related OLE interface is not too clear, if you don't consider order can study

CodePudding user response:

Well, this is the benefits of vector diagram,

, I want to use "first, after the first left after the right" rules, can be resolved properly out most font stroke order,

CodePudding user response:

refer to 7th floor zhao4zhong1 response:

referenceStroke break down
The software

truth here!

CodePudding user response:

nullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  •  Tags:  
  • API
  • Related