Click here to Skip to main content
15,921,212 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Custom Objects Accessible by Many Forms Pin
kialmur30-Jun-06 6:29
kialmur30-Jun-06 6:29 
GeneralRe: Custom Objects Accessible by Many Forms Pin
led mike30-Jun-06 6:39
led mike30-Jun-06 6:39 
GeneralRe: Custom Objects Accessible by Many Forms Pin
kialmur30-Jun-06 6:50
kialmur30-Jun-06 6:50 
GeneralRe: Custom Objects Accessible by Many Forms Pin
Zac Howland30-Jun-06 6:45
Zac Howland30-Jun-06 6:45 
AnswerRe: Custom Objects Accessible by Many Forms Pin
led mike30-Jun-06 5:30
led mike30-Jun-06 5:30 
QuestionSave button and encryption Pin
we3Guy30-Jun-06 4:58
we3Guy30-Jun-06 4:58 
AnswerRe: Save button and encryption Pin
led mike30-Jun-06 5:25
led mike30-Jun-06 5:25 
AnswerRe: Save button and encryption Pin
bob1697230-Jun-06 5:26
bob1697230-Jun-06 5:26 
If you encrypt the image as a whole, it will no longer be identifiable as an image. The results of attempting to display it would be, for lack of a better term, undefined. If you want to still view the image after it is encrypted, then you will need to access the bits and encrypt them. The result will be somewhat unpleasant to look at but that sounds more like what you are after.

In GDI+, the bitmap object supports accessing the raw bits with "LockBits()". The scan lines can have dead space at the ends to properly align. This depends on the color depth. However, since your encrypting, this deadspace will only add to the distortion when viewing so you probably don't need to account for it when processing as long as it is preserved when you decrypt.

I think you will need to resist any temptation to change the PixelFormat since you will be leaving the rest of the image file structure intact.

Good luck!
QuestionDetecting that a network cable has been plugged in... Pin
LostInABQ30-Jun-06 4:50
LostInABQ30-Jun-06 4:50 
QuestionRe: Detecting that a network cable has been plugged in... Pin
David Crow30-Jun-06 5:02
David Crow30-Jun-06 5:02 
AnswerRe: Detecting that a network cable has been plugged in... Pin
Eric Dahlvang30-Jun-06 6:12
Eric Dahlvang30-Jun-06 6:12 
QuestionRe: Detecting that a network cable has been plugged in... Pin
David Crow30-Jun-06 6:19
David Crow30-Jun-06 6:19 
AnswerRe: Detecting that a network cable has been plugged in... Pin
Randor 30-Jun-06 7:39
professional Randor 30-Jun-06 7:39 
GeneralRe: Detecting that a network cable has been plugged in... Pin
David Crow30-Jun-06 9:29
David Crow30-Jun-06 9:29 
GeneralRe: Detecting that a network cable has been plugged in... Pin
Randor 30-Jun-06 13:55
professional Randor 30-Jun-06 13:55 
QuestionRe: Detecting that a network cable has been plugged in... Pin
David Crow5-Jul-06 2:48
David Crow5-Jul-06 2:48 
AnswerRe: Detecting that a network cable has been plugged in... Pin
Eric Dahlvang30-Jun-06 10:47
Eric Dahlvang30-Jun-06 10:47 
GeneralRe: Detecting that a network cable has been plugged in... Pin
David Crow5-Jul-06 2:51
David Crow5-Jul-06 2:51 
GeneralRe: Detecting that a network cable has been plugged in... Pin
Eric Dahlvang5-Jul-06 6:19
Eric Dahlvang5-Jul-06 6:19 
AnswerRe: Detecting that a network cable has been plugged in... Pin
Justin Tay30-Jun-06 12:06
Justin Tay30-Jun-06 12:06 
QuestionGetting pointer to ActiveX control object Pin
wrjksdf30-Jun-06 4:19
wrjksdf30-Jun-06 4:19 
AnswerRe: Getting pointer to ActiveX control object Pin
Viorel.30-Jun-06 5:25
Viorel.30-Jun-06 5:25 
AnswerRe: Getting pointer to ActiveX control object Pin
wrjksdf1-Jul-06 19:43
wrjksdf1-Jul-06 19:43 
Questionctime() printing Pin
kitty530-Jun-06 3:58
kitty530-Jun-06 3:58 
AnswerRe: ctime() printing Pin
Cedric Moonen30-Jun-06 4:02
Cedric Moonen30-Jun-06 4:02 

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.