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 previous 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;
	}
}
 
Read Message
Read Message
Previous Topic: WithEnterAction compile error
Next Topic: progress to report fb bazaar
Goto Forum:
  


Current Time: Thu Apr 25 06:36:45 CEST 2024

Total time taken to generate the page: 0.03041 seconds