Click here to Skip to main content
15,924,193 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Determine what device is connect to a com port Pin
Luc Pattyn24-Jun-10 14:09
sitebuilderLuc Pattyn24-Jun-10 14:09 
QuestionHow to pass values from one window form to another using vb.net Pin
.NetDeveloper0924-Jun-10 11:03
.NetDeveloper0924-Jun-10 11:03 
AnswerRe: How to pass values from one window form to another using vb.net Pin
Wayne Gaylard24-Jun-10 22:03
professionalWayne Gaylard24-Jun-10 22:03 
QuestionRe: How to create a setup file Pin
.NetDeveloper091-Jul-10 21:39
.NetDeveloper091-Jul-10 21:39 
AnswerRe: How to create a setup file Pin
Wayne Gaylard2-Jul-10 0:25
professionalWayne Gaylard2-Jul-10 0:25 
GeneralRe: How to create a setup file Pin
.NetDeveloper092-Jul-10 9:03
.NetDeveloper092-Jul-10 9:03 
Questionshow/hide least significant bits in a bitmap Pin
craig777724-Jun-10 5:41
craig777724-Jun-10 5:41 
AnswerRe: show/hide least significant bits in a bitmap Pin
Luc Pattyn24-Jun-10 6:23
sitebuilderLuc Pattyn24-Jun-10 6:23 
Hi,

I'm not sure what you are doing here. Some comments:

1.
you don't need all the b1, b2, b3, b4, b5, b6, b7, b8; you could add to MaskByte right away.

2.
your image may have 4 components: RGB+alpha, so you may be manipulating the alpha/transparency too.

3.
what is the magic about byte value 54?

4.
all your code does is bringing every byte closer to zero; and all-zero is black.

5.
you probably want something like:
For x = 0 To Image.Length - 1
    If (x MOD 4) = 0 Then
        Image1(x)=Image(x)
        Image2(x)=Image(x)
    Else
        Image1(x)= Image(x) AND MaskByte
        Image2(x)= Image(x)-Image1(x)
    End If
Next


which still brings things closer to black, but at least it is separating two images.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use < PRE > tags for code snippets, it preserves indentation, and improves readability.


GeneralRe: show/hide least significant bits in a bitmap Pin
craig777724-Jun-10 12:14
craig777724-Jun-10 12:14 
GeneralRe: show/hide least significant bits in a bitmap [modified] Pin
Luc Pattyn24-Jun-10 12:35
sitebuilderLuc Pattyn24-Jun-10 12:35 
GeneralRe: show/hide least significant bits in a bitmap [modified] Pin
craig777725-Jun-10 6:59
craig777725-Jun-10 6:59 
QuestionConnect to Remote Server Database from Local Machine Pin
Paul McGann24-Jun-10 3:47
professionalPaul McGann24-Jun-10 3:47 
AnswerRe: Connect to Remote Server Database from Local Machine Pin
Steven J Jowett24-Jun-10 4:09
Steven J Jowett24-Jun-10 4:09 
GeneralRe: Connect to Remote Server Database from Local Machine Pin
Paul McGann24-Jun-10 4:25
professionalPaul McGann24-Jun-10 4:25 
GeneralRe: Connect to Remote Server Database from Local Machine Pin
dan!sh 24-Jun-10 4:27
professional dan!sh 24-Jun-10 4:27 
GeneralRe: Connect to Remote Server Database from Local Machine Pin
Paul McGann24-Jun-10 4:53
professionalPaul McGann24-Jun-10 4:53 
GeneralRe: Connect to Remote Server Database from Local Machine Pin
Steven J Jowett24-Jun-10 4:38
Steven J Jowett24-Jun-10 4:38 
GeneralRe: Connect to Remote Server Database from Local Machine Pin
Dave Kreskowiak24-Jun-10 9:47
mveDave Kreskowiak24-Jun-10 9:47 
GeneralRe: Connect to Remote Server Database from Local Machine Pin
tiggerc1-Jul-10 5:08
tiggerc1-Jul-10 5:08 
Questiondebug assertion failed Pin
Member 477502023-Jun-10 19:29
Member 477502023-Jun-10 19:29 
AnswerRe: debug assertion failed Pin
Eddy Vluggen23-Jun-10 21:16
professionalEddy Vluggen23-Jun-10 21:16 
QuestionVB6: System Error &H80004015 Pin
willempipi23-Jun-10 5:07
willempipi23-Jun-10 5:07 
AnswerRe: VB6: System Error &H80004015 Pin
Eddy Vluggen23-Jun-10 21:14
professionalEddy Vluggen23-Jun-10 21:14 
GeneralRe: VB6: System Error &H80004015 Pin
willempipi23-Jun-10 21:20
willempipi23-Jun-10 21:20 
QuestionContextMenuStrip not highlighting Items according to mouse movement Pin
Trevortni22-Jun-10 10:04
Trevortni22-Jun-10 10:04 

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.