Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: load image in c++ Pin
rempit5-Jul-07 15:20
rempit5-Jul-07 15:20 
GeneralRe: load image in c++ Pin
David Crow5-Jul-07 16:31
David Crow5-Jul-07 16:31 
QuestionRe: load image in c++ Pin
rempit5-Jul-07 23:08
rempit5-Jul-07 23:08 
AnswerRe: load image in c++ Pin
David Crow6-Jul-07 2:43
David Crow6-Jul-07 2:43 
QuestionHow to send email programatically with attachment Pin
BlrBoy4-Jul-07 20:39
BlrBoy4-Jul-07 20:39 
AnswerRe: How to send email programatically with attachment Pin
Hamid_RT4-Jul-07 21:28
Hamid_RT4-Jul-07 21:28 
QuestionAny other alternative for GetPixel() SetPixel() Pin
narayanagvs4-Jul-07 20:36
narayanagvs4-Jul-07 20:36 
AnswerRe: Any other alternative for GetPixel() SetPixel() Pin
Vadim Tabakman4-Jul-07 21:01
Vadim Tabakman4-Jul-07 21:01 
A replacement to GetPixel, is to use GetBitmapBits and access the memory directly.
<br />
BITMAP bm= ###; // i assume you have this<br />
<br />
int datasize = bm.bmWidth*bm.bmHeight*bm.bmPlanes;<br />
COLORREF* lpClrData = (COLORREF*)LocalAlloc(LPTR, datasize * sizeof(COLORREF));<br />
DWORD ds = GetBitmapBits(hBitmap, datasize * sizeof(COLORREF), lpClrData);<br />
<br />
COLORREF pixelColor = lpClrData[y*imageWidth+x];<br />
<br />


This is much faster that GetPixel...
I haven't had to deal with SetPixel (but i'm sure with the above you should be on your way to finding a solution).

Cheers,
Jubjub


"If you're too careful, your whole life can become a f---in' grind." - Mike McD (Rounders)

GeneralRe: Any other alternative for GetPixel() SetPixel() Pin
Russell'5-Jul-07 5:38
Russell'5-Jul-07 5:38 
AnswerRe: Any other alternative for GetPixel() SetPixel() Pin
Mark Salsbery5-Jul-07 8:29
Mark Salsbery5-Jul-07 8:29 
QuestionCFileDialog Pin
samira forooghi4-Jul-07 20:32
samira forooghi4-Jul-07 20:32 
AnswerRe: CFileDialog Pin
CPallini4-Jul-07 21:07
mveCPallini4-Jul-07 21:07 
GeneralRe: CFileDialog Pin
samira forooghi4-Jul-07 21:12
samira forooghi4-Jul-07 21:12 
QuestionReturning byte array from ActiveX Pin
Vadim Tabakman4-Jul-07 19:57
Vadim Tabakman4-Jul-07 19:57 
QuestionClient and Server communication !! [modified] Pin
ashachandu4-Jul-07 19:42
ashachandu4-Jul-07 19:42 
AnswerRe: Client and Server communication !! Pin
VishuABCDEFG4-Jul-07 23:13
VishuABCDEFG4-Jul-07 23:13 
Question[Message Deleted] Pin
Jayapal Chandran4-Jul-07 19:41
Jayapal Chandran4-Jul-07 19:41 
AnswerRe: Writing global hooks in Dev-c++ IDE Pin
CPallini4-Jul-07 21:15
mveCPallini4-Jul-07 21:15 
GeneralRe: Writing global hooks in Dev-c++ IDE Pin
Jayapal Chandran9-Jul-07 18:39
Jayapal Chandran9-Jul-07 18:39 
QuestionRe: Writing global hooks in Dev-c++ IDE Pin
David Crow5-Jul-07 2:52
David Crow5-Jul-07 2:52 
AnswerRe: Pragma dataseg for dll's Pin
Mark Salsbery5-Jul-07 8:39
Mark Salsbery5-Jul-07 8:39 
QuestionFree Resource?? Pin
thenewbee4-Jul-07 19:15
thenewbee4-Jul-07 19:15 
AnswerRe: Free Resource?? Pin
_AnsHUMAN_ 4-Jul-07 19:41
_AnsHUMAN_ 4-Jul-07 19:41 
AnswerRe: Free Resource?? Pin
Hamid_RT4-Jul-07 19:43
Hamid_RT4-Jul-07 19:43 
GeneralRe: Free Resource?? Pin
thenewbee4-Jul-07 21:34
thenewbee4-Jul-07 21:34 

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.