Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

Dynamic Image->Bitmap issue

So here's the deal...

I have a method that determines the location of a sample bitmap image, however I am unable to use any image that isn't loaded from Properties.Resources.

At most I was able to save and load from a resx file but this did not produce the same results and using ResouceWriter and ResourceReader failed as well (no exceptions, simply returns null).

What I need is to be able to either
A: Save and Load from Resources in the shortest way possible (preferably using overload parameters)
Or
B: Change an image to be the exact same bitmap output that resources would produce, whatever that result may be.

Essentially I am trying to use images on an array as bitmap images.

I have tried the standard
"(Bitmap) image/ Image newImage = new Bitmap(image);" methods, but this fails.

Any suggestions are highly appreciated.

Code
//Invalid Example:
bool isValid = FindBitmap((Bitmap)image, screenshot, out location);

//Valid Example:
bool isValid = FindBitmap(Properties.Resources.PresavedImage, screenshot, out location);

Resolved:
Issue was that the bitmap size was not relative to the image size.
Monetizing the World

I never deal off-site

(except Autobuy)


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by C++Dec 29, 2019 06:16 PM 16 831 Dec 29, 2019 06:16 PM
Last Post: DNA
[C] by SIM-3437924Nov 10, 2019 03:55 PM 11 344 Nov 10, 2019 03:55 PM
Last Post: YouthInAsia
[C] by SIM-3437924Nov 2, 2019 01:27 PM 4 278 Nov 2, 2019 01:27 PM
Last Post: SIM-3437924