Click here to Skip to main content
15,886,069 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question(OpenGL/MFC/Win32) glReadPixels and CreateBitmap question... Pin
Maximilien14-Jan-11 7:57
Maximilien14-Jan-11 7:57 
AnswerRe: (OpenGL/MFC/Win32) glReadPixels and CreateBitmap question... Pin
User 742933814-Jan-11 10:03
professionalUser 742933814-Jan-11 10:03 
QuestionString Problem Pin
john563214-Jan-11 1:22
john563214-Jan-11 1:22 
AnswerRe: String Problem Pin
Stephen Hewitt14-Jan-11 1:34
Stephen Hewitt14-Jan-11 1:34 
AnswerRe: String Problem Pin
Maximilien14-Jan-11 1:59
Maximilien14-Jan-11 1:59 
Questioncreate dimmed icon with magick++ (ImageMagick) Pin
Thue Andersen13-Jan-11 22:10
Thue Andersen13-Jan-11 22:10 
AnswerRe: create dimmed icon with magick++ (ImageMagick) Pin
Chris Losinger14-Jan-11 3:04
professionalChris Losinger14-Jan-11 3:04 
AnswerRe: create dimmed icon with magick++ (ImageMagick) [modified] Pin
User 742933814-Jan-11 11:33
professionalUser 742933814-Jan-11 11:33 
Aside from the transperency in the alpha channel, one pixel value can be chosen as fully transparent. This is often chosen to be magenta (R=255, G=0, B=255, A=255).

Now that you have modified the alpha component of every pixel, what was previously (R=255, G=0, B=255, A=255), is now (R=255, G=0, B=255, A=128). It's no longer recognised as fully transparent and instead treated as magenta at half transperency.

So to solve your problem, you'd have to either exclude the magenta (R=255, G=0, B=255, A=255) pixels from having their transperency halved or change the transparent pixel value to be (R=255, G=0, B=255, A=128).

modified on Friday, January 14, 2011 6:04 PM


modified 13-Sep-18 21:01pm.

GeneralRe: create dimmed icon with magick++ (ImageMagick) Pin
Thue Andersen16-Jan-11 5:00
Thue Andersen16-Jan-11 5:00 
GeneralRe: create dimmed icon with magick++ (ImageMagick) Pin
Rozis18-Jan-11 8:08
Rozis18-Jan-11 8:08 
GeneralRe: create dimmed icon with magick++ (ImageMagick) Pin
Thue Andersen18-Jan-11 22:13
Thue Andersen18-Jan-11 22:13 
QuestionIsalpha Function Issue. Pin
Mike Certini13-Jan-11 18:00
Mike Certini13-Jan-11 18:00 
AnswerRe: Isalpha Function Issue. Pin
Cool_Dev13-Jan-11 18:11
Cool_Dev13-Jan-11 18:11 
GeneralRe: Isalpha Function Issue. Pin
Andrew Brock13-Jan-11 18:15
Andrew Brock13-Jan-11 18:15 
GeneralRe: Isalpha Function Issue. Pin
Mike Certini13-Jan-11 18:28
Mike Certini13-Jan-11 18:28 
AnswerRe: Isalpha Function Issue. Pin
Luc Pattyn14-Jan-11 0:56
sitebuilderLuc Pattyn14-Jan-11 0:56 
GeneralRe: Isalpha Function Issue. Pin
Mike Certini13-Jan-11 18:28
Mike Certini13-Jan-11 18:28 
AnswerRe: Isalpha Function Issue. Pin
Richard MacCutchan13-Jan-11 22:00
mveRichard MacCutchan13-Jan-11 22:00 
Questionwcstok [modified] Pin
csrss13-Jan-11 2:40
csrss13-Jan-11 2:40 
AnswerRe: wcstok Pin
Cedric Moonen13-Jan-11 2:53
Cedric Moonen13-Jan-11 2:53 
GeneralRe: wcstok Pin
csrss13-Jan-11 3:20
csrss13-Jan-11 3:20 
GeneralRe: wcstok Pin
Luc Pattyn13-Jan-11 3:26
sitebuilderLuc Pattyn13-Jan-11 3:26 
GeneralRe: wcstok Pin
csrss13-Jan-11 3:29
csrss13-Jan-11 3:29 
GeneralRe: wcstok Pin
Luc Pattyn13-Jan-11 3:40
sitebuilderLuc Pattyn13-Jan-11 3:40 
GeneralRe: wcstok Pin
csrss13-Jan-11 4:04
csrss13-Jan-11 4:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.