Click here to Skip to main content
16,011,120 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Export to OpenOffice Pin
ivo7520-Mar-11 3:02
ivo7520-Mar-11 3:02 
GeneralRe: Export to OpenOffice Pin
Eddy Vluggen20-Mar-11 3:45
professionalEddy Vluggen20-Mar-11 3:45 
GeneralRe: Export to OpenOffice Pin
ivo7520-Mar-11 3:58
ivo7520-Mar-11 3:58 
GeneralRe: Export to OpenOffice Pin
Dave Kreskowiak20-Mar-11 4:32
mveDave Kreskowiak20-Mar-11 4:32 
GeneralRe: Export to OpenOffice Pin
Eddy Vluggen20-Mar-11 4:45
professionalEddy Vluggen20-Mar-11 4:45 
GeneralRe: Export to OpenOffice Pin
Eddy Vluggen20-Mar-11 4:44
professionalEddy Vluggen20-Mar-11 4:44 
AnswerRe: Export to OpenOffice Pin
Dalek Dave18-May-11 12:28
professionalDalek Dave18-May-11 12:28 
QuestionIdeas for Matrix operation? Pin
Sonhospa18-Mar-11 2:10
Sonhospa18-Mar-11 2:10 
Hello everybody,

I have a byte array holding a (non-windows) bitmap format (RGB as 10 bits each in a UInt32). In order to change it to a visible 8-bit image I have to do some bit-shifting on the pixels, but unfortunately looping through the pixels with
Dim RGBArray(CInt((PicFile.Length - ft.Position) / 4 * 3) - 1) As Byte

For i = 0 To (RGBArray.Length - 1) Step 3
    ' change Endianness
    Dim buff As UInt32 = EndianConversion.SwapDWORD(brh.ReadUInt32)

    ' bit-shifting operation
    RGBArray(i) = (buff And &HFFC) >> 4           ' Blue
    RGBArray(i + 1) = (buff And &H3FFFFC) >> 14       ' Green
    RGBArray(i + 2) = (buff And &HFFFFFFFC) >> 24     ' Red

Next i
takes a lot of time. Having seen how images can be manipulated with an image matrix, I wonder if that kind of operation might also be performed using a matrix on the whole byte array?

Is someone around who can tell me this or a faster way to get my image as bitmap?

Thanks
Mick
AnswerRe: Ideas for Matrix operation? Pin
Luc Pattyn18-Mar-11 2:37
sitebuilderLuc Pattyn18-Mar-11 2:37 
GeneralRe: Ideas for Matrix operation? Pin
Sonhospa18-Mar-11 3:31
Sonhospa18-Mar-11 3:31 
AnswerRe: Ideas for Matrix operation? Pin
Luc Pattyn18-Mar-11 3:38
sitebuilderLuc Pattyn18-Mar-11 3:38 
QuestionHow to change the version number of xla project Pin
ashish8patil17-Mar-11 23:37
ashish8patil17-Mar-11 23:37 
AnswerRe: How to change the version number of xla project Pin
DaveAuld18-Mar-11 0:26
professionalDaveAuld18-Mar-11 0:26 
QuestionProblem with changing NameSpace Pin
Alan Burkhart15-Mar-11 15:18
Alan Burkhart15-Mar-11 15:18 
AnswerRe: Problem with changing NameSpace Pin
Luc Pattyn15-Mar-11 15:37
sitebuilderLuc Pattyn15-Mar-11 15:37 
GeneralRe: Problem with changing NameSpace Pin
Alan Burkhart15-Mar-11 15:48
Alan Burkhart15-Mar-11 15:48 
QuestionQuestion on how to trap winform closing from VS designer Pin
Jon_Boy15-Mar-11 3:26
Jon_Boy15-Mar-11 3:26 
AnswerRe: Question on how to trap winform closing from VS designer Pin
Pravin Patil, Mumbai15-Mar-11 3:37
Pravin Patil, Mumbai15-Mar-11 3:37 
GeneralRe: Question on how to trap winform closing from VS designer Pin
Jon_Boy15-Mar-11 3:45
Jon_Boy15-Mar-11 3:45 
GeneralRe: Question on how to trap winform closing from VS designer Pin
Pravin Patil, Mumbai20-Mar-11 18:44
Pravin Patil, Mumbai20-Mar-11 18:44 
AnswerRe: Question on how to trap winform closing from VS designer Pin
Luc Pattyn15-Mar-11 3:45
sitebuilderLuc Pattyn15-Mar-11 3:45 
GeneralRe: Question on how to trap winform closing from VS designer Pin
Jon_Boy15-Mar-11 4:02
Jon_Boy15-Mar-11 4:02 
GeneralRe: Question on how to trap winform closing from VS designer Pin
Dave Kreskowiak15-Mar-11 4:10
mveDave Kreskowiak15-Mar-11 4:10 
GeneralRe: Question on how to trap winform closing from VS designer Pin
Аslam Iqbal15-Mar-11 8:11
professionalАslam Iqbal15-Mar-11 8:11 
GeneralRe: Question on how to trap winform closing from VS designer Pin
Jon_Boy15-Mar-11 9:09
Jon_Boy15-Mar-11 9: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.