Click here to Skip to main content
15,911,891 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Struct problem in C, proberly a simple one Pin
Tim Smith17-Sep-04 4:00
Tim Smith17-Sep-04 4:00 
GeneralRe: Struct problem in C, proberly a simple one Pin
znize17-Sep-04 4:24
znize17-Sep-04 4:24 
GeneralRe: Struct problem in C, proberly a simple one Pin
David Crow17-Sep-04 6:21
David Crow17-Sep-04 6:21 
GeneralRe: Struct problem in C, proberly a simple one Pin
Tim Smith18-Sep-04 5:34
Tim Smith18-Sep-04 5:34 
GeneralRe: Struct problem in C, proberly a simple one Pin
David Crow20-Sep-04 3:02
David Crow20-Sep-04 3:02 
GeneralRe: Struct problem in C, proberly a simple one Pin
Gary R. Wheeler19-Sep-04 15:33
Gary R. Wheeler19-Sep-04 15:33 
GeneralCoInitialize Pin
shiraztk17-Sep-04 2:33
shiraztk17-Sep-04 2:33 
GeneralGDI+ question Pin
ZejulioZ17-Sep-04 2:20
ZejulioZ17-Sep-04 2:20 
Hi I'm using GDI+ for a C++ application which is a great library. But this library sooo powerfull is not able to do a simple thing I need to do Frown | :(

I have a picture 1 x 10 px that I want to stretch to a very flat 100 x 10 px. As result I have a wonderful alpha gradient which is not what I want. Of course I tried to change the interpolation mode to InterpolationModeNearestNeighbor which give me a better result but still not perfect since and - I don't why - the area painted is not completly filled.

There is the very simple code :

// Load in some initialisation function
// a 1 x 100 picture sized
m_pBitmap1 = Bitmap::FromFile( csFilename.AllocSysString() );

// Then in onpaint method
CPaintDC dc(this);
Graphics graphics(dc.m_hDC);
graphics.SetInterpolationMode( InterpolationModeNearestNeighbor );
graphics.DrawImage(m_pBitmap1, 0, 0, 100, m_pBitmap1->GetHeight());

Can somebody provide me some explainations or even better... a solution ? Smile | :)
Thanks
GeneralRe: GDI+ question Pin
PJ Arends17-Sep-04 7:25
professionalPJ Arends17-Sep-04 7:25 
GeneralRe: GDI+ question Pin
Chris Richardson18-Sep-04 21:43
Chris Richardson18-Sep-04 21:43 
GeneralRe: GDI+ question Pin
ZejulioZ19-Sep-04 14:45
ZejulioZ19-Sep-04 14:45 
GeneralPointer to Dialog Pin
Anonymous17-Sep-04 2:11
Anonymous17-Sep-04 2:11 
GeneralRe: Pointer to Dialog Pin
Blake Miller17-Sep-04 4:05
Blake Miller17-Sep-04 4:05 
GeneralCFileDialog and ActiveX Pin
TUMB17-Sep-04 2:03
TUMB17-Sep-04 2:03 
GeneralDisable the ability to switch to other Windows programs Pin
Sujan Christo17-Sep-04 1:53
Sujan Christo17-Sep-04 1:53 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Blake Miller17-Sep-04 4:07
Blake Miller17-Sep-04 4:07 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Neville Franks17-Sep-04 11:42
Neville Franks17-Sep-04 11:42 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Blake Miller17-Sep-04 11:49
Blake Miller17-Sep-04 11:49 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Neville Franks17-Sep-04 11:58
Neville Franks17-Sep-04 11:58 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Sujan Christo17-Sep-04 18:07
Sujan Christo17-Sep-04 18:07 
GeneralRe: Disable the ability to switch to other Windows programs Pin
normanS19-Sep-04 20:36
normanS19-Sep-04 20:36 
GeneralRe: Disable the ability to switch to other Windows programs Pin
Sujan Christo17-Sep-04 17:58
Sujan Christo17-Sep-04 17:58 
QuestionHow can I send a WM_Quit message Pin
rromerot17-Sep-04 1:47
rromerot17-Sep-04 1:47 
AnswerRe: How can I send a WM_Quit message Pin
Alexander M.,17-Sep-04 2:13
Alexander M.,17-Sep-04 2:13 
Generalremove the initial ChildFrame Pin
Mughi17-Sep-04 1:04
Mughi17-Sep-04 1: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.