Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 311

PowerShell Studio • Issues with PictureBox using image from ImageList after PS Studio update

$
0
0
Product, version and build: PowerShell Studio 2025 v5.9.252
Operating system: Windows 11 22H2
PowerShell version(s): 5.1

This afternoon after updating PowerShell Studio to the 2025 (v5.9.252) release I noticed that a project I was working on was no longer displaying images from an imagelist object in a picturebox object correctly.

The imagelist object is created and the images are added in PowerShell Studio before the project is built into an EXE. The images in the imagelist object indicate being 32-bit, however when the image is selected to be used in the picturebox its as if the color depth being used is very low.

I've confirmed that this same issue appears on another project after the project is built into an EXE on the new version of PowerShell Studio. In the case of the first project I noticed this issue with, I had just built it into an EXE prior to updating PowerShell Studio and still had the previous EXE available to test with. I've attached screenshots of the picture box working (displaying the image correctly) and then it not working.

So far I've attempted to delete the image from the imagelist object and re-import it. That didn't result in any change. I've also looked into the picturebox object to see if there's a way to set the color depth (thinking that maybe the new version of PowerShell Studio simply wasn't setting a color depth attribute the same anymore), but everything I can find points to the picturebox object not having settings around the color depth, and that it simply displays whatever you tell it to display.

Within my project I'm setting the image on the picturebox using the following command:

$picturebox.Image = $imagelist.Images[0]

Any recommendations on addressing this issue?
broken.jpg

working.jpg

Statistics: Posted by cdouglas_nch — Wed Jan 15, 2025 3:12 pm — Replies 3 — Views 19



Viewing all articles
Browse latest Browse all 311

Trending Articles