-
👋 I'm not used to c/c++ ; so I don't know the implications of some things... I found an explanation for
As a result, I can pass directly a But signature of MagickImage_Annotate is slightly different ; from a developer pov, it's "less fantastic" ; it's not a big deal because Kotlin provide lot of extensions functions 🤩 From Magick.NET perspective, I see no difference at all (I may be wrong) ; it seems you always provide a pointer to the String directly (with From ImageMagick perspective, I don't understand why, sometimes, the strings could be mutable. Could Magick.Native sanitize or "fix" some ImageMagick APIs? Like I said, I don't understand why the strings could be mutable ; and like I said, I'm not used to c/c++ 😅 Any enlightenment is welcome. Thanks! Regards. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The arguments for |
Beta Was this translation helpful? Give feedback.
The arguments for
MagickImage_Annotate
arechar *
because thedrawInfo
needs achar *
. This is done because it wants to cleanup thetext
andgeometry/boundingArea
. But I am already preventing ImageMagick from doing that because I need to free the memory on the C# side. I could change those arguments intoconst char *
for the Native library and do the typecast inside theMagickImage_Annotate
method if that would help you.