Click here to Skip to main content
15,913,854 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: HELP!!! How to make a movenext command? Pin
meki_211816-Dec-08 18:23
meki_211816-Dec-08 18:23 
QuestionProgress bar to display to take time of to load the report [modified] Pin
jigneshDPatel16-Dec-08 17:12
jigneshDPatel16-Dec-08 17:12 
AnswerRe: Progress bar to display to take time of to load the report Pin
Christian Graus16-Dec-08 17:17
protectorChristian Graus16-Dec-08 17:17 
QuestionRegistry PowerCfg Pin
User 540919016-Dec-08 14:00
User 540919016-Dec-08 14:00 
AnswerRe: Registry PowerCfg Pin
Nanda_MR16-Dec-08 17:09
Nanda_MR16-Dec-08 17:09 
GeneralRe: Registry PowerCfg Pin
User 540919016-Dec-08 17:17
User 540919016-Dec-08 17:17 
GeneralRe: Registry PowerCfg Pin
Dave Kreskowiak16-Dec-08 17:38
mveDave Kreskowiak16-Dec-08 17:38 
Questionconverting 24bit color depth image to 1bpp image Pin
pnpfriend16-Dec-08 6:04
pnpfriend16-Dec-08 6:04 
Hi,
I am trying to convert the 24 bit image to 1 bit image.
How can I convert it.
I had tried the following code and obviously it didn't work.

Thank You.
<br />
Public Function ConvertTo1bpp(ByVal img As Bitmap) As Bitmap<br />
        Dim rc As New Rectangle(0, 0, img.Width, img.Height)<br />
        Dim bmpS As New Bitmap(img.Width, img.Height, PixelFormat.Format1bppIndexed)<br />
        bmpS.SetResolution(img.HorizontalResolution, img.VerticalResolution)<br />
        Dim bmpDataSet As BitmapData = bmpS.LockBits(rc, ImageLockMode.ReadWrite, PixelFormat.Format1bppIndexed)<br />
        Dim bmpDataSource As BitmapData = img.LockBits(rc, ImageLockMode.ReadOnly, img.PixelFormat)<br />
         bmpDataSource.PixelFormat = PixelFormat.Format1bppIndexed<br />
        img.UnlockBits(bmpDataSource)<br />
<br />
        Return img<br />
    End Function<br />

AnswerRe: converting 24bit color depth image to 1bpp image Pin
Dave Kreskowiak16-Dec-08 8:36
mveDave Kreskowiak16-Dec-08 8:36 
GeneralRe: converting 24bit color depth image to 1bpp image Pin
pnpfriend16-Dec-08 9:43
pnpfriend16-Dec-08 9:43 
GeneralRe: converting 24bit color depth image to 1bpp image Pin
Christian Graus16-Dec-08 9:58
protectorChristian Graus16-Dec-08 9:58 
GeneralRe: converting 24bit color depth image to 1bpp image Pin
Dave Kreskowiak16-Dec-08 13:34
mveDave Kreskowiak16-Dec-08 13:34 
AnswerRe: converting 24bit color depth image to 1bpp image Pin
Christian Graus16-Dec-08 8:53
protectorChristian Graus16-Dec-08 8:53 
QuestionCallerID doesn't show up , even when I use a Demo of CallerID app Pin
Yasser Daheek16-Dec-08 5:49
Yasser Daheek16-Dec-08 5:49 
AnswerRe: CallerID doesn't show up , even when I use a Demo of CallerID app Pin
cpkilekofp16-Dec-08 5:58
cpkilekofp16-Dec-08 5:58 
QuestionTwo Questions Pin
Quecumber25616-Dec-08 4:11
Quecumber25616-Dec-08 4:11 
AnswerRe: Two Questions Pin
Dave Kreskowiak16-Dec-08 8:54
mveDave Kreskowiak16-Dec-08 8:54 
GeneralRe: Two Questions Pin
Quecumber25616-Dec-08 9:51
Quecumber25616-Dec-08 9:51 
GeneralRe: Two Questions Pin
Dave Kreskowiak16-Dec-08 10:36
mveDave Kreskowiak16-Dec-08 10:36 
GeneralRe: Two Questions Pin
Quecumber25616-Dec-08 12:09
Quecumber25616-Dec-08 12:09 
QuestionHow to get a list of all the properties in a class? Pin
H3rmansson16-Dec-08 3:56
H3rmansson16-Dec-08 3:56 
GeneralRe: How to get a list of all the properties in a class? Pin
Luc Pattyn16-Dec-08 4:03
sitebuilderLuc Pattyn16-Dec-08 4:03 
QuestionClient-Server application Pin
Subjugate16-Dec-08 3:05
Subjugate16-Dec-08 3:05 
AnswerRe: Client-Server application Pin
EliottA16-Dec-08 3:07
EliottA16-Dec-08 3:07 
GeneralRe: Client-Server application Pin
Subjugate16-Dec-08 3:12
Subjugate16-Dec-08 3:12 

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.