Allow for TextOptions, FontColor, and Point in DrawText #220
-
Currently there exists no overloaded method under the If this is in error (maybe it can be done using DrawingOptions?), please feel free to close this discussion. Thank you. EDIT: This may need to be moved to the ImageSharp.Drawing repository instead. I am currently not able to transfer the discussion, but you are free to do so. Or, if you'd rather this discussion be closed, I can re-create the discussion at that repo. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
public static IImageProcessingContext DrawText(this IImageProcessingContext source, TextOptions textOptions, string text, Color color)
|
Beta Was this translation helpful? Give feedback.
https://docs.sixlabors.com/api/ImageSharp.Drawing/SixLabors.ImageSharp.Drawing.Processing.DrawTextExtensions.html#SixLabors_ImageSharp_Drawing_Processing_DrawTextExtensions_DrawText_IImageProcessingContext_TextOptions_System_String_Color_
TextOptions
contains a property calledOrigin
that is used to set the location.https://docs.sixlabors.com/api/Fonts/SixLabors.Fonts.TextOptions.html#SixLabors_Fonts_TextOptions_Origin