flowjae.blogg.se

Windows xp background picture purple
Windows xp background picture purple










windows xp background picture purple

I am using the GDI+ DrawXXX() / FillXXX() calls to create images in Bitmaps using a Graphics object.DOWNLOAD: /open?id=1_E_b… (PLEASE read the notes BEFORE commenting about missing wallpapers) Lines, Boxes, images, rotated and scaled stuff, etc. I am actually not just drawing white boxes in the application I'm working on. Cuz like I said, if I throw a solid black non-transparent background on the Bitmap first, then my white box shows up gray.Īs for why I'm not using WPF GUI Rectangles and such. It seems to be how the GUI is handling the alpha channel or something. It's only when I convert to a BitmapSource so I can stick it in a object in a GUI window.

windows xp background picture purple

If I do the same drawing calls but go to an image file instead, then everything looks perfect. So your Bitmap starts off 100% transparent then you draw a partially transparent white box into it and put it over a Canvas? The key seems to be having it in the GUI.

windows xp background picture purple

I am fairly certain the issue shows up on all those platforms. Thanks for the reply! Weird that you are not seeing the blue tint, I have run our software on XP Home, XP Pro, Vista 32-bit (I forget which exact flavors) and Vista Ultimate 64-bit. The Format property on the BitmapSource object is read-only so I can't set it after that call either. This guy mentions the blue/purple tint issue and in the comments below someone says try setting the BitmapSource PixelFormat to PixelFormat.Bgra32 but there doesn't seem to be a way to specify a pixel format when using CreateBitmapSourceFromHBitmap(). I want the image background to be transparent though.

windows xp background picture purple

If, before I draw, I use Clear() to set the Bitmap background to all black (instead of transparent) then I get the expected gray box on a black background. I have no idea where this blue tint is coming from and I can't seem to get rid of it. now we have to convert our Bitmap into a BitmapSourceīmpSource = .CreateBitmapSourceFromHBitmap Using (Graphics bitmapBuffer = Graphics.FromImage(thumbBmp))īrush brush = new SolidBrush(Color.FromArgb(127, 255, 255, 255) īitmapBuffer.FillRectangle(brush, 10, 10, 80, 80) Using (Bitmap thumbBmp = new Bitmap(100, 100, .Format32bppArgb))

  • For some reason the 50% transparent white box shows up with a blue/purple tint, not the expected gray over the black background.
  • Behind the Image is a Canvas with a black background.
  • I create a BitmapSource from that Bitmap, so that I can give it to an Image () for display in a WPF GUI application.
  • I draw a filled rectangle into that bitmap using that brush.
  • I create a SolidBrush that is white, but with alpha value 127 (i.e.
  • Here is a simple case of what I'm experiencing:












    Windows xp background picture purple