Closed mb-jp closed 1 year ago
Great, but what is the difference between the two properties?
WpfDrawingSettings.AccessExternalResourcesMode can have three values (Allow, Ignore and ThrowError).
WpfDrawingSettings.CanUseBitmap is a bool with the default value true, which stops the use of bitmaps in image elements.
WpfDrawingSettings.CanUseBitmap is a bool with the default value true, which stops the use of bitmaps in image elements.
If you are allowing use of external resources, what is the value of this property? I see the need for AccessExternalResourcesMode as security support, but cannot see the role of CanUseBitmap.
CanUseBitmap should be in a separate pull request, i can remove it and open a new issues for it.
CanUseBitmap should be in a separate pull request, i can remove it and open a new issues for it.
Sorry, I could not explain this well. When is the use of this property necessary? or why do we need it?
It is for another use case, not directly connected to #230.
I have a use case where I want to stop the user from using bitmaps in SVG files in the program, the SVG must look good when scaled up or down, so CanUseBitmap just stop image elements from rendering images.
@mb-jp Sorry, please can you add Xml Docs?
In addition to fixing #229, this pull request also adds a property to block uses of bitmaps to WpfDrawingSettings.CanUseBitmap