Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: full path of a process Pin
CPallini9-Dec-10 0:53
mveCPallini9-Dec-10 0:53 
GeneralRe: full path of a process Pin
zon_cpp9-Dec-10 2:18
zon_cpp9-Dec-10 2:18 
GeneralRe: full path of a process Pin
CPallini9-Dec-10 2:29
mveCPallini9-Dec-10 2:29 
GeneralRe: full path of a process Pin
David Crow9-Dec-10 2:44
David Crow9-Dec-10 2:44 
QuestionAlignment of More Than Two Text in Correct Format for CListBox. Pin
janaswamy uday8-Dec-10 22:42
janaswamy uday8-Dec-10 22:42 
AnswerRe: Alignment of More Than Two Text in Correct Format for CListBox. Pin
Richard MacCutchan8-Dec-10 23:32
mveRichard MacCutchan8-Dec-10 23:32 
AnswerRe: Alignment of More Than Two Text in Correct Format for CListBox. Pin
krmed9-Dec-10 0:38
krmed9-Dec-10 0:38 
Questionsave image after setting transparency Pin
tagopi8-Dec-10 21:22
tagopi8-Dec-10 21:22 
Hello

I am loading an image file using gdiplus Bitmap class, and changing the transparency using ColorMatrix, and draw the image in device context, its showing fine in transparency. now i want to save this file in disk (with transparency). is there anyway to do that?

i am doing like this.
Bitmap gbmp = Bitmap::FromFile("C:\\anyimage.bmp");
ImageAttributes imgAttr;
ColorMatrix tcm =
{
1.0f, 0.0f, 0.0f, 0, 0,
0.0f, 1.0f, 0.0f, 0, 0,
0.0f, 0.0f, 1.0f, 0, 0,
0.0f, 0.0f, 0.0f, 0.6f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f, 1.0f
};

imgAttr.SetColorMatrix(&cm, Gdiplus::ColorMatrixFlagsDefault,Gdiplus::ColorAdjustTypeBitmap);

Graphics g(dc.GetSafeHdc());
g.DrawImage(gbmp, Gdiplus::Rect(0, 0, gbmp.GetWidth(), gbmp.GetHeight()), 0, 0, gbmp.GetWidth(), gbmp.GetHeight(),UnitPixel, &imgAttr);

after this, i need to save this image in disk.


Thanks
A. Gopinath.
AnswerRe: save image after setting transparency Pin
Alain Rist8-Dec-10 21:38
Alain Rist8-Dec-10 21:38 
GeneralRe: save image after setting transparency Pin
mbue9-Dec-10 13:11
mbue9-Dec-10 13:11 
QuestionException Pin
john56328-Dec-10 19:58
john56328-Dec-10 19:58 
AnswerRe: Exception Pin
Cedric Moonen8-Dec-10 20:44
Cedric Moonen8-Dec-10 20:44 
AnswerRe: Exception Pin
Luc Pattyn8-Dec-10 20:44
sitebuilderLuc Pattyn8-Dec-10 20:44 
AnswerRe: Exception Pin
CPallini8-Dec-10 21:08
mveCPallini8-Dec-10 21:08 
QuestionHow integrate Microsoft Platform SDK with Visual Studio 6.0 [modified] Pin
Schehaider_Aymen8-Dec-10 9:51
Schehaider_Aymen8-Dec-10 9:51 
AnswerRe: How integrate Microsoft Platform SDK with Visual Studio 6.0 Pin
Cool_Dev8-Dec-10 21:08
Cool_Dev8-Dec-10 21:08 
GeneralRe: How integrate Microsoft Platform SDK with Visual Studio 6.0 Pin
Schehaider_Aymen10-Dec-10 9:17
Schehaider_Aymen10-Dec-10 9:17 
QuestionDeclaring and using private function in DLL Pin
AmbiguousName8-Dec-10 6:51
AmbiguousName8-Dec-10 6:51 
AnswerRe: Declaring and using private function in DLL Pin
CPallini8-Dec-10 7:23
mveCPallini8-Dec-10 7:23 
AnswerRe: Declaring and using private function in DLL Pin
David Crow8-Dec-10 7:27
David Crow8-Dec-10 7:27 
AnswerRe: Declaring and using private function in DLL Pin
Rajesh R Subramanian8-Dec-10 19:44
professionalRajesh R Subramanian8-Dec-10 19:44 
AnswerRe: Declaring and using private function in DLL [modified] Pin
Cedric Moonen8-Dec-10 20:55
Cedric Moonen8-Dec-10 20:55 
GeneralRe: Declaring and using private function in DLL Pin
Rajesh R Subramanian8-Dec-10 21:30
professionalRajesh R Subramanian8-Dec-10 21:30 
GeneralRe: Declaring and using private function in DLL Pin
Richard MacCutchan8-Dec-10 23:28
mveRichard MacCutchan8-Dec-10 23:28 
GeneralRe: Declaring and using private function in DLL Pin
Cedric Moonen8-Dec-10 23:37
Cedric Moonen8-Dec-10 23:37 

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.