Cosmos icon indicating copy to clipboard operation
Cosmos copied to clipboard

IL2CPU Bitmap drawing issue

Open glintpry opened this issue 3 years ago • 9 comments

Area of Cosmos - What area of Cosmos are we dealing with?

Graphical Interfaces (using the canvas.DrawImage() to draw the background.bmp via the Resources file)

Expected Behaviour - What do you think that should happen?

It should normally draw the background (as it has worked in other projects)

Actual Behaviour - What unexpectedly happens?

It just shows "Exception: System.Exception: " and then just doesn't mention what went wrong.

Reproduction - How did you get this error to appear?

Via This code: Bitmap wallpaper = new Bitmap((uint)Kernel.screenWidth, (uint)Kernel.screenHeight, Resources.backimg, ColorDepth.ColorDepth32); canvas.DrawImage(wallpaper, 0, 0); (the backimg is from my resource file)

Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?

I was using UserKit although not sure about versions.

glintpry avatar Jul 01 '23 06:07 glintpry

have you tried

Bitmap wallpaper = new Bitmap(Resources.backimg);

since it is a .bmp resource?

pleasenoban avatar Jul 01 '23 08:07 pleasenoban

have you tried

Bitmap wallpaper = new Bitmap(Resources.backimg);

since it is a .bmp resource?

Yes of course I did, and a couple other attempts.

glintpry avatar Jul 01 '23 08:07 glintpry

Send us the entire build log please so we can get more info about the issue

9xbt avatar Jul 01 '23 08:07 9xbt

Send us the entire build log please so we can get more info about the issue

so as in the log that shows up when you start compiling?

glintpry avatar Jul 01 '23 08:07 glintpry

its just using plugs from cosmos-build stuff and then its the exception

glintpry avatar Jul 01 '23 08:07 glintpry

you can still click on "view build log" and see the log when its finished

9xbt avatar Jul 13 '23 15:07 9xbt

@PratyushKing when will you send the logs its been fucking 2 months since i asked

9xbt avatar Sep 08 '23 15:09 9xbt

@PratyushKing when will you send the logs its been fucking 2 months since i asked

Please be more respectful with your language

quajak avatar Sep 08 '23 21:09 quajak

I am really sorry, I forgot to close the issue, it has been fixed.

glintpry avatar Sep 09 '23 05:09 glintpry