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: 62
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: 3004
Registered: August 2008
Ultimate Member
Thank you. Fixed!

Best regards
IƱaki
Previous Topic: A terminal emulator widget for U++
Goto Forum:
  


Current Time: Thu Oct 17 13:24:59 CEST 2019

Total time taken to generate the page: 0.01034 seconds