Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » UppHub » Bug: SysInfo->ScreenGrab->Window_SaveCapture on X11 does not set the alpha channel
Bug: SysInfo->ScreenGrab->Window_SaveCapture on X11 does not set the alpha channel [message #52445] Wed, 02 October 2019 07:55 Go to next message
jjacksonRIAB is currently offline  jjacksonRIAB
Messages: 220
Registered: June 2011
Experienced Member
for (int y = 0; y < height; y++) {
	RGBA *row = ib[y];
	for (int x = 0; x < width ; x++) {
	 	unsigned long pixel = XGetPixel(image, x, y);
		unsigned char blue  = pixel & blue_mask;
		unsigned char green = (pixel & green_mask) >> 8;
		unsigned char red   = (pixel & red_mask) >> 16;
		(row + x)->r = red;
		(row + x)->g = green;
		(row + x)->b = blue;
+-->            (row + x)->a = 0xff;
	}
}
Re: Bug: SysInfo->ScreenGrab->Window_SaveCapture on X11 does not set the alpha channel [message #52446 is a reply to message #52445] Wed, 02 October 2019 08:26 Go to previous message
koldo is currently offline  koldo
Messages: 3357
Registered: August 2008
Senior Veteran
Thank you. Fixed!

Best regards
IƱaki
Previous Topic: WithEnterAction compile error
Next Topic: progress to report fb bazaar
Goto Forum:
  


Current Time: Wed Apr 24 04:46:02 CEST 2024

Total time taken to generate the page: 0.03943 seconds