Exemple #1
0
    /// <summary>
    /// Loads the image from the specified resource name.
    /// </summary>
    /// <param name="resourceName">Name of the resource.</param>
    /// <returns>Image</returns>
    public static Image Load(string resourceName)
    {
        string fullResourceName;

        fullResourceName = assemblyName + ".Images." + resourceName;

        return(FastBitmap.FromResource(typeof(ResourceLoader), fullResourceName));
        //old way
        //return new Bitmap(typeof(ResourceLoader), fullResourceName);
    }