You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add ink annotations using FPDFAnnotAddInkStroke, and it takes a pointer to an array of FS_POINTF_. When sending in a C# array of points like this fpdf_annot.FPDFAnnotAddInkStroke(annot, fs_points[0], (ulong)fs_points.Length); I get strange results, leading me to think that there is an issue in the conversion between the class objects and the struct.
I think if would be better if FS_POINTF_ was a struct instead.
The text was updated successfully, but these errors were encountered:
After reading up on helper-defines in CppSharp I added CS_VALUE_TYPE to the FS_POINTF struct in fpdfview.h. I also had to define CS_VALUE_TYPE, so the code ended up like this:
FS_POINTF_ is then generated as a struct in the C# code. This hard coding works, but I'm not sure how to best add this to the generator program. Please advice on how to add this change and I'll create a pull request
I'm trying to add ink annotations using FPDFAnnotAddInkStroke, and it takes a pointer to an array of FS_POINTF_. When sending in a C# array of points like this
fpdf_annot.FPDFAnnotAddInkStroke(annot, fs_points[0], (ulong)fs_points.Length);
I get strange results, leading me to think that there is an issue in the conversion between the class objects and the struct.I think if would be better if FS_POINTF_ was a struct instead.
The text was updated successfully, but these errors were encountered: