As shown in the figure above, I use the function PointerMove, enter the force parameter, change the force value, the display thickness does not change.
Does the render module have a thickness display? Am I using it correctly?
thank you.
Best Answer
O
Olivier @MyScript
said
over 1 year ago
Dear Larry,
I just removed the exchanges you had with our sales person. These contain personal information that shall not appear on a public forum.
As said in the exchanges, the configuration can be set as follows: conf.setNumber("renderer.stroker.real-pressure-factor", 1.0);
The value can be tuned from 0 (only uses the speed) to 1 (only uses pressure) ; you can also set values in between.
The function I want to achieve is that a stroke contains multiple coordinate information, and each coordinate information contains X and Y coordinates and pressure value. When drawing, the thickness can be changed according to the pressure value to restore the real writing track and thickness.
if the pressure is not taken into account to change the thickness,there's no way to restore real handwriting.
Also, what is the role of the f parameter in the PointerMove function?
O
Olivier @MyScript
said
over 1 year ago
Dear User,
if the pressure is not taken into account to change the thickness,there's no way to restore real handwriting.
>>This is a use-case that is not easy to handle. We cannot commit if/when we will have such mechanism.
Also, what is the role of the f parameter in the PointerMove function?
>>Just in case for future use.
Best regards,
Olivier
D
Develop 36notes
said
over 1 year ago
IMAGED REMOVED!
The salesperson told me that "renderer.stroker-real-pressure-factor" can be used. But I did not find the relevant documents. Please send me the link to use "renderer.stroker-real-pressure-factor", thank you.
Best regards,
Larry
O
Olivier @MyScript
said
over 1 year ago
Answer
Dear Larry,
I just removed the exchanges you had with our sales person. These contain personal information that shall not appear on a public forum.
As said in the exchanges, the configuration can be set as follows: conf.setNumber("renderer.stroker.real-pressure-factor", 1.0);
The value can be tuned from 0 (only uses the speed) to 1 (only uses pressure) ; you can also set values in between.
786386473
As shown in the figure above, I use the function PointerMove, enter the force parameter, change the force value, the display thickness does not change.
Does the render module have a thickness display? Am I using it correctly?
thank you.
Dear Larry,
I just removed the exchanges you had with our sales person. These contain personal information that shall not appear on a public forum.
As said in the exchanges, the configuration can be set as follows: conf.setNumber("renderer.stroker.real-pressure-factor", 1.0);
The value can be tuned from 0 (only uses the speed) to 1 (only uses pressure) ; you can also set values in between.
Best regards,
Olivier
- Oldest First
- Popular
- Newest First
Sorted by Oldest FirstOlivier @MyScript
Dear User,
indeed, at present, the pressure is not taken into account to change the thickness.
If you need to change the thickness, this shall be done via the
-myscript-pen-width
property of the styling: https://developer.myscript.com/docs/interactive-ink/1.4/reference/styling/Best regards,
Olivier
786386473
thank you.
The function I want to achieve is that a stroke contains multiple coordinate information, and each coordinate information contains X and Y coordinates and pressure value. When drawing, the thickness can be changed according to the pressure value to restore the real writing track and thickness.
if the pressure is not taken into account to change the thickness,there's no way to restore real handwriting.
Also, what is the role of the f parameter in the PointerMove function?
Olivier @MyScript
Dear User,
if the pressure is not taken into account to change the thickness,there's no way to restore real handwriting.
>>This is a use-case that is not easy to handle. We cannot commit if/when we will have such mechanism.
Also, what is the role of the f parameter in the PointerMove function?
>>Just in case for future use.
Best regards,
Olivier
Develop 36notes
IMAGED REMOVED!
The salesperson told me that "renderer.stroker-real-pressure-factor" can be used. But I did not find the relevant documents. Please send me the link to use "renderer.stroker-real-pressure-factor", thank you.
Best regards,
Larry
Olivier @MyScript
Dear Larry,
I just removed the exchanges you had with our sales person. These contain personal information that shall not appear on a public forum.
As said in the exchanges, the configuration can be set as follows: conf.setNumber("renderer.stroker.real-pressure-factor", 1.0);
The value can be tuned from 0 (only uses the speed) to 1 (only uses pressure) ; you can also set values in between.
Best regards,
Olivier