Skip to content

Add support for System.Drawing.Bitmap and System.Byte[] #2

@ye4241

Description

@ye4241

The resx file with images, icons, or files are generated as string now. It should be as below:

  <data name="SomeImage" type="System.Resources.ResXFileRef, System.Windows.Forms">
    <value>..\some_image.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0,
      Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    </value>
  </data>
        /// <summary>
        ///   Looks up a localized resource of type System.Drawing.Bitmap.
        /// </summary>
        public static System.Drawing.Bitmap SomeImage{
            get {
                object obj = ResourceManager.GetObject("SomeImage", resourceCulture);
                return ((System.Drawing.Bitmap)(obj));
            }
        }

Add windows support for the test project, add image to resx file will generate these code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions