Click here to Skip to main content
16,005,290 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionError Reading Raw Pixel Data Into Bitmap Pin
Sonhospa16-May-10 21:44
Sonhospa16-May-10 21:44 
AnswerRe: Error Reading Raw Pixel Data Into Bitmap Pin
Henry Minute17-May-10 1:39
Henry Minute17-May-10 1:39 
GeneralRe: Error Reading Raw Pixel Data Into Bitmap Pin
Sonhospa17-May-10 5:09
Sonhospa17-May-10 5:09 
AnswerRe: Error Reading Raw Pixel Data Into Bitmap Pin
DaveAuld17-May-10 1:52
professionalDaveAuld17-May-10 1:52 
GeneralRe: Error Reading Raw Pixel Data Into Bitmap Pin
Sonhospa17-May-10 5:26
Sonhospa17-May-10 5:26 
AnswerRe: Error Reading Raw Pixel Data Into Bitmap Pin
Luc Pattyn17-May-10 3:41
sitebuilderLuc Pattyn17-May-10 3:41 
GeneralRe: Error Reading Raw Pixel Data Into Bitmap Pin
Sonhospa17-May-10 5:41
Sonhospa17-May-10 5:41 
GeneralRe: Error Reading Raw Pixel Data Into Bitmap Pin
Luc Pattyn17-May-10 5:47
sitebuilderLuc Pattyn17-May-10 5:47 
yep, if no stride information is available, you should assume each row strictly follows the previous one (which isn't necessarily so in an in-memory .NET image, as pixels might be aligned to a higher power-of-2 multiple).

Now even with consecutive rows, you must reset your rescaling counter for each row, otherwise it would go wrong if say your scale factor is 2 and the image width is odd rather than even.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read formatted code with indentation, so please use PRE tags for code snippets.

I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).

AnswerResolved: Scaling Raw Pixel Data When Reading Into Bitmap Pin
Sonhospa17-May-10 10:59
Sonhospa17-May-10 10:59 
GeneralRe: Resolved: Scaling Raw Pixel Data When Reading Into Bitmap Pin
Luc Pattyn17-May-10 11:44
sitebuilderLuc Pattyn17-May-10 11:44 
QuestionRun-time error Pin
MsmVc16-May-10 19:24
MsmVc16-May-10 19:24 
AnswerRe: Run-time error Pin
Richard MacCutchan16-May-10 21:13
mveRichard MacCutchan16-May-10 21:13 
GeneralRe: Run-time error Pin
MsmVc16-May-10 21:34
MsmVc16-May-10 21:34 
GeneralRe: Run-time error Pin
DaveAuld16-May-10 23:01
professionalDaveAuld16-May-10 23:01 
GeneralRe: Run-time error Pin
MsmVc16-May-10 23:06
MsmVc16-May-10 23:06 
GeneralRe: Run-time error Pin
DaveAuld16-May-10 23:55
professionalDaveAuld16-May-10 23:55 
GeneralRe: Run-time error Pin
MsmVc16-May-10 23:57
MsmVc16-May-10 23:57 
GeneralRe: Run-time error Pin
DaveAuld16-May-10 23:59
professionalDaveAuld16-May-10 23:59 
GeneralRe: Run-time error Pin
MsmVc17-May-10 0:10
MsmVc17-May-10 0:10 
GeneralRe: Run-time error [modified] Pin
DaveAuld17-May-10 0:43
professionalDaveAuld17-May-10 0:43 
GeneralRe: Run-time error Pin
MsmVc18-May-10 22:15
MsmVc18-May-10 22:15 
GeneralRe: Run-time error Pin
DaveAuld18-May-10 22:54
professionalDaveAuld18-May-10 22:54 
AnswerRe: Run-time error Pin
Sonhospa16-May-10 23:57
Sonhospa16-May-10 23:57 
AnswerRe: Run-time error Pin
William Winner17-May-10 8:10
William Winner17-May-10 8:10 
GeneralRe: Run-time error Pin
DaveAuld18-May-10 22:54
professionalDaveAuld18-May-10 22:54 

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.