Hey all,
first thanks for the remarkable integration :-)
Just a short question concerning the line width to draw a rm file.
If a pdf file is parsed, how do I set the line thickness?
According to the source code, drawj2d uses fixed
public int brush_type = rmPen.FINELINER_2;
public int color = rmColour.BLACK;
public float brush_base_size = rmWidth.MEDIUM;
It it possible to change this parameters dynamically?
Kind regards
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The line with is set using the rmPoint parameter:(line.addPoint(x1, y1)).width = 2f. I do not know what the brush_baze_size is used for, maybe for other pens than the fineliner.
Drawj2d does not use fixed line width. Assuming you run drawj2d -Trm notes.hcl and notes.hcl contains the line image my.pdf 1. The line width on the reMarkable device should be the same a in the pdf. Drawj2d reads the stroke width from the Graphics2d context: stroke.getLineWidth() * 226.85f / 25.4f;. Have a look at RemarkableGraphics2D for the implementation
Sorry for the late reply (I should check spam more often).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey all,
first thanks for the remarkable integration :-)
Just a short question concerning the line width to draw a rm file.
If a pdf file is parsed, how do I set the line thickness?
According to the source code, drawj2d uses fixed
public int brush_type = rmPen.FINELINER_2;
public int color = rmColour.BLACK;
public float brush_base_size = rmWidth.MEDIUM;
It it possible to change this parameters dynamically?
Kind regards
The line with is set using the rmPoint parameter:
(line.addPoint(x1, y1)).width = 2f
. I do not know what the brush_baze_size is used for, maybe for other pens than the fineliner.Drawj2d does not use fixed line width. Assuming you run drawj2d -Trm notes.hcl and notes.hcl contains the line
image my.pdf 1
. The line width on the reMarkable device should be the same a in the pdf. Drawj2d reads the stroke width from the Graphics2d context:stroke.getLineWidth() * 226.85f / 25.4f;
. Have a look at RemarkableGraphics2D for the implementationSorry for the late reply (I should check spam more often).