Click here to Skip to main content
15,890,123 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Questionconnection Pin
ihe1-Sep-09 18:54
ihe1-Sep-09 18:54 
AnswerRe: connection Pin
_Damian S_1-Sep-09 20:22
professional_Damian S_1-Sep-09 20:22 
GeneralRe: connection Pin
ihe2-Sep-09 16:06
ihe2-Sep-09 16:06 
AnswerRe: connection Pin
Christian Graus1-Sep-09 21:28
protectorChristian Graus1-Sep-09 21:28 
GeneralRe: connection Pin
ihe2-Sep-09 16:03
ihe2-Sep-09 16:03 
QuestionError when drawing a bitmap Pin
Sonhospa1-Sep-09 15:28
Sonhospa1-Sep-09 15:28 
AnswerRe: Error when drawing a bitmap Pin
Christian Graus1-Sep-09 16:10
protectorChristian Graus1-Sep-09 16:10 
AnswerRe: Error when drawing a bitmap Pin
Luc Pattyn2-Sep-09 1:05
sitebuilderLuc Pattyn2-Sep-09 1:05 
Hi,

yes you can construct an image/bitmap from raw data with one of its constructors.
However the documentation clearly states "The caller is responsible for allocating and freeing the block of memory specified by the scan0 parameter, however, the memory should not be released until the related Bitmap is released." so the way I understand it is you should not free the GCHandle right away, the raw data should not be allowed to move around for as long as your bitmap is alive.

Smile | :)

Luc Pattyn
Badger | [badger,badger,badger,badger...] Jig | [Dance] Badger | [badger,badger,badger,badger...] Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.Jig | [Dance] Badger | [badger,badger,badger,badger...] Jig | [Dance]

QuestionRe: Error when drawing a bitmap [modified] Pin
Sonhospa2-Sep-09 8:12
Sonhospa2-Sep-09 8:12 
AnswerRe: Error when drawing a bitmap Pin
Luc Pattyn2-Sep-09 8:33
sitebuilderLuc Pattyn2-Sep-09 8:33 
GeneralRe: Error when drawing a bitmap Pin
Sonhospa2-Sep-09 8:55
Sonhospa2-Sep-09 8:55 
GeneralRe: Error when drawing a bitmap Pin
Luc Pattyn2-Sep-09 9:32
sitebuilderLuc Pattyn2-Sep-09 9:32 
QuestionVB6 Serial Comm Crashs Visual Studio Pin
suguimoto1-Sep-09 12:02
suguimoto1-Sep-09 12:02 
AnswerRe: VB6 Serial Comm Crashs Visual Studio Pin
Christian Graus1-Sep-09 14:26
protectorChristian Graus1-Sep-09 14:26 
GeneralRe: VB6 Serial Comm Crashs Visual Studio Pin
suguimoto1-Sep-09 16:20
suguimoto1-Sep-09 16:20 
AnswerRe: VB6 Serial Comm Crashs Visual Studio Pin
Mycroft Holmes1-Sep-09 16:05
professionalMycroft Holmes1-Sep-09 16:05 
AnswerRe: VB6 Serial Comm Crashs Visual Studio Pin
Luc Pattyn2-Sep-09 1:11
sitebuilderLuc Pattyn2-Sep-09 1:11 
QuestionCalculate the origin and radius of a circle Pin
keithp08231-Sep-09 10:21
keithp08231-Sep-09 10:21 
AnswerRe: Calculate the origin and radius of a circle Pin
Luc Pattyn1-Sep-09 13:58
sitebuilderLuc Pattyn1-Sep-09 13:58 
GeneralRe: Calculate the origin and radius of a circle Pin
keithp08232-Sep-09 5:35
keithp08232-Sep-09 5:35 
GeneralRe: Calculate the origin and radius of a circle Pin
Luc Pattyn2-Sep-09 5:54
sitebuilderLuc Pattyn2-Sep-09 5:54 
GeneralRe: Calculate the origin and radius of a circle Pin
keithp08232-Sep-09 6:32
keithp08232-Sep-09 6:32 
QuestionConfused by Events Pin
Sonhospa1-Sep-09 1:49
Sonhospa1-Sep-09 1:49 
AnswerRe: Confused by Events Pin
Jay Royall1-Sep-09 2:02
Jay Royall1-Sep-09 2:02 
GeneralRe: Confused by Events Pin
Mycroft Holmes1-Sep-09 16:09
professionalMycroft Holmes1-Sep-09 16:09 

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.