Render to clipboard how to do it
All  1-4  5-7

Previous
Next
 From:  Michael Gibson
5974.5 In reply to 5974.4 
Hi Nikola, it definitely sounds like a bug in GIMP. If you want to report the bug, here's a description that you can send:



Bug in Pasting in CF_DIB format from the clipboard.

With a CF_DIB in the clipboard, that has biCompression of BI_RGB, the pixel values are not being read correctly, GIMP is incorrectly using the high byte of each pixel as an alpha value.

According to the documentation here (for BITMAPINFOHEADER): http://msdn.microsoft.com/en-us/library/windows/desktop/dd183376%28v=vs.85%29.aspx, for a 32-bit image using BI_RGB:

"If the biCompression member of the BITMAPINFOHEADER is BI_RGB, the bmiColors member of BITMAPINFO is NULL. Each DWORD in the bitmap array represents the relative intensities of blue, green, and red for a pixel. The value for blue is in the least significant 8 bits, followed by 8 bits each for green and red. The high byte in each DWORD is not used."

The problem is that Gimp is using the high byte as an alpha value when in this particular case it should be ignored and treated only as opaque alpha.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Frenchy Pilou (PILOU)
5974.6 In reply to 5974.5 
That is curious that bug was not yet found with millions of Gimp users ?
---
Pilou
Is beautiful that please without concept!
My Gallery
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  nikola (ZENOX3D)
5974.7 In reply to 5974.5 
Thanx a lot Michael for your help and for your detailed explanations of my problem.

Best Regards from Nikola
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All

 

 
 
Show messages: All  1-4  5-7