net472_PropertyGridHelpers.UIEditors_ImageTextUIEditor_GetImageFromResource - dparvin/PropertyGridHelpers GitHub Wiki

ImageTextUIEditor.GetImageFromResource method

Gets the image from resource.

public static Bitmap GetImageFromResource(object Value, Type enumType, string ResourcePath, 
    string fileExtension, Rectangle bounds)
parameter description
Value The value.
enumType Type of the enum.
ResourcePath The resource path.
fileExtension
bounds The bounds of the generated image.

Exceptions

exception condition
InvalidOperationException Resource file '{ResourceName}.resources' not found in assembly '{m}'. \n" + $"Available resources: {string.Join(", ", resourceNames)} or Resource {enumImage} is not a valid image or byte array.
InvalidOperationException Resource file not found in the assembly. or Resource is not a valid image or byte array.

See Also

⚠️ **GitHub.com Fallback** ⚠️