Click here to Skip to main content
15,887,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getdirectories performance problems Pin
Anders Hedén20-Jan-12 4:05
Anders Hedén20-Jan-12 4:05 
AnswerRe: Getdirectories performance problems Pin
Shameel20-Jan-12 4:56
professionalShameel20-Jan-12 4:56 
AnswerRe: Getdirectories performance problems Pin
BobJanova20-Jan-12 2:32
BobJanova20-Jan-12 2:32 
AnswerRe: Getdirectories performance problems Pin
Pete O'Hanlon20-Jan-12 2:49
mvePete O'Hanlon20-Jan-12 2:49 
QuestionProblem Copying Raw RGB Data to Bitmap Pin
Jaffer Mumtaz19-Jan-12 23:20
Jaffer Mumtaz19-Jan-12 23:20 
AnswerRe: Problem Copying Raw RGB Data to Bitmap Pin
Luc Pattyn19-Jan-12 23:50
sitebuilderLuc Pattyn19-Jan-12 23:50 
GeneralRe: Problem Copying Raw RGB Data to Bitmap Pin
Jaffer Mumtaz19-Jan-12 23:55
Jaffer Mumtaz19-Jan-12 23:55 
AnswerRe: Problem Copying Raw RGB Data to Bitmap Pin
BobJanova20-Jan-12 2:17
BobJanova20-Jan-12 2:17 
This is because the pixel format expects the bytes in the other order from what you're providing (BGR, I think. The 4 byte one is BGRA iirc). I would transform the bytes on the way in:

byte[] newImageData = new byte[imageData.Length];
for(int i = 0; i < newImageData.Length; i += 3){
 newImageData[i] = imageData[i + 2];
 newImageData[i + 1] = imageData[i + 1];
 newImageData[i + 2] = imageData[i];
}


Unless the image is really large, that should be negligible in time and memory terms and easier than post-processing the image with a ColorFilter.
GeneralRe: Problem Copying Raw RGB Data to Bitmap Pin
Jaffer Mumtaz21-Jan-12 7:31
Jaffer Mumtaz21-Jan-12 7:31 
GeneralRe: Problem Copying Raw RGB Data to Bitmap Pin
BobJanova21-Jan-12 10:59
BobJanova21-Jan-12 10:59 
QuestionTime taken to load a contrl Pin
Subin Mavunkal19-Jan-12 19:15
Subin Mavunkal19-Jan-12 19:15 
AnswerRe: Time taken to load a contrl Pin
BillWoodruff19-Jan-12 20:15
professionalBillWoodruff19-Jan-12 20:15 
AnswerRe: Time taken to load a contrl Pin
V.19-Jan-12 20:27
professionalV.19-Jan-12 20:27 
AnswerRe: Time taken to load a contrl Pin
Luc Pattyn19-Jan-12 21:51
sitebuilderLuc Pattyn19-Jan-12 21:51 
AnswerRe: Time taken to load a contrl Pin
BobJanova19-Jan-12 22:13
BobJanova19-Jan-12 22:13 
Questionis object part of CollectionBase Pin
Hanzaplast19-Jan-12 5:26
Hanzaplast19-Jan-12 5:26 
AnswerRe: is object part of CollectionBase Pin
BobJanova19-Jan-12 6:41
BobJanova19-Jan-12 6:41 
AnswerRe: is object part of CollectionBase Pin
Luc Pattyn19-Jan-12 7:24
sitebuilderLuc Pattyn19-Jan-12 7:24 
GeneralRe: is object part of CollectionBase Pin
Dave Kreskowiak19-Jan-12 7:30
mveDave Kreskowiak19-Jan-12 7:30 
GeneralRe: is object part of CollectionBase Pin
Luc Pattyn19-Jan-12 8:01
sitebuilderLuc Pattyn19-Jan-12 8:01 
GeneralRe: is object part of CollectionBase Pin
BillWoodruff19-Jan-12 20:24
professionalBillWoodruff19-Jan-12 20:24 
Questionusing variables in SSIS script task: c# code Pin
bigphish19-Jan-12 1:33
bigphish19-Jan-12 1:33 
GeneralRe: using variables in SSIS script task: c# code Pin
Richard MacCutchan19-Jan-12 22:58
mveRichard MacCutchan19-Jan-12 22:58 
QuestionWSE3 Soap Service generated XML structure modification at runtime. Pin
FrankieG197519-Jan-12 1:08
FrankieG197519-Jan-12 1:08 
AnswerRe: WSE3 Soap Service generated XML structure modification at runtime. Pin
FrankieG197522-Jan-12 20:21
FrankieG197522-Jan-12 20:21 

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.