namespaces for 'RendererOptions' and 'TextGraphicsOptions' could not be found (are you missing a using directive or an assembly reference?) #2138
Unanswered
bytesfrombits
asked this question in
Ideas
Replies: 1 comment 1 reply
-
Did you read the API docs? Obviously not since you decided to waste our time by using the Ideas discussion forum for basic QA. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In order to generate webp images and after upgrading a working project that was generating png images from SixLabors.ImageSharp 1.0.3 and SixLabors.ImageSharp.Drawing 1.0.0-beta11 to SixLabors.ImageSharp 2.1.0 and SixLabors.ImageSharp.Drawing 1.0.0-beta14 respectively, the following errors are now thrown on any attempt to build the project:
Errors:
error CS0246: The type or namespace name 'RendererOptions' could not be found (are you missing a using directive or an assembly reference?)
error CS0246: The type or namespace name 'TextGraphicsOptions' could not be found (are you missing a using directive or an assembly reference?)
Snippet of the affected function:
private static IImageProcessingContext DrawScaleCenterText(this IImageProcessingContext processingContext,Font font,string text,Color color,float padding, int VerticalPosition)
{
Size imgSize = processingContext.GetCurrentSize();
Where/How to reference the RendererOptions, TextGraphicsOptions, FontRectangle, TextMeasurer, TextOptions classes?
The samples in Samples/ImageSharp/ don't appear to be current. Is it possible to update these with the current features such as Wepb support. This would be of great help to other users who may be in the process of updating their projects.
Beta Was this translation helpful? Give feedback.
All reactions