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++ » Bazaar » 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: 64
Registered: June 2011
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: 3045
Registered: August 2008
Ultimate Member
Thank you. Fixed!

Best regards
IƱaki
Previous Topic: MessageCtrl: A passive notifications ctrl and manager.
Next Topic: A terminal emulator widget for U++
Goto Forum:
  


Current Time: Fri Dec 13 02:02:01 CET 2019

Total time taken to generate the page: 0.01546 seconds