Click here to Skip to main content
16,008,469 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralPrint DOC, PDF, XLS files wth header Pin
d44735-May-05 4:22
d44735-May-05 4:22 
GeneralRe: Print DOC, PDF, XLS files wth header Pin
Anonymous5-May-05 12:48
Anonymous5-May-05 12:48 
GeneralSQL logon with crystal reports Pin
Joey Picerno5-May-05 4:08
Joey Picerno5-May-05 4:08 
GeneralReport quering Pin
Waheire5-May-05 3:51
Waheire5-May-05 3:51 
GeneralRe: Report quering Pin
Joey Picerno5-May-05 6:51
Joey Picerno5-May-05 6:51 
GeneralTimer event Pin
Ben_115_net5-May-05 3:37
Ben_115_net5-May-05 3:37 
GeneralRe: Timer event Pin
Dave Kreskowiak5-May-05 4:22
mveDave Kreskowiak5-May-05 4:22 
GeneralFast pixel drawing on .net COMPACT Framework Pin
CarlosMMartins5-May-05 0:32
CarlosMMartins5-May-05 0:32 
Hi,

I need to draw a dynamically generated 256x256 grayscale bitmap on screen.
Drawing it "pixel by pixel" is extremely slow. (several seconds)
Drawing it on an ofscreen bitmap and then blitting it on screen is slightly faster, but still unaceptable.

On the full framework I got around to accessing the bitmap data, and accessing the pixels directly, giving instant results.
Is there any way to achive this on the Compact Framework?
(or any other method that works...)

If the "AddressOf" worked for the bitmap, so I could get a IntPtr to it, I think I could then go in there and set the pixel data myself... But I was unable to find a way to do that.

The current code:

Dim ImgRAW(256, 256) As Byte
' GetImage(Imgraw) '... Fill up dynamic image
Dim offbmp As New Bitmap(256, 256)
For scan = 1 To 255
For x = 1 To 255
t = ImgRAW(scan, x)
offbmp.SetPixel(x, scan, Color.FromArgb(t, t, t))
Next
Next
oG.DrawImage(offbmp, 400, 100)

Hope someone can help,
Thanks.
GeneralRe: Fast pixel drawing on .net COMPACT Framework Pin
Dave Kreskowiak5-May-05 4:26
mveDave Kreskowiak5-May-05 4:26 
GeneralRe: Fast pixel drawing on .net COMPACT Framework Pin
CarlosMMartins5-May-05 5:21
CarlosMMartins5-May-05 5:21 
QuestionHow to set pixel color on paint event Pin
meghadwivedi4-May-05 21:37
meghadwivedi4-May-05 21:37 
AnswerRe: How to set pixel color on paint event Pin
Dave Kreskowiak5-May-05 4:25
mveDave Kreskowiak5-May-05 4:25 
GeneralCannot Create ActiveX Component 429 Pin
Rizwan Bashir4-May-05 21:15
Rizwan Bashir4-May-05 21:15 
Generalsms to mobiles from Web application Pin
din butt4-May-05 20:05
din butt4-May-05 20:05 
Generalcopying files in VB6.0 Pin
madhu_panisetty4-May-05 19:07
madhu_panisetty4-May-05 19:07 
GeneralRe: copying files in VB6.0 Pin
jonathan154-May-05 22:45
jonathan154-May-05 22:45 
GeneralRe: copying files in VB6.0 Pin
madhu_panisetty5-May-05 1:34
madhu_panisetty5-May-05 1:34 
GeneralModules Pin
memee814-May-05 14:31
memee814-May-05 14:31 
GeneralRe: Modules Pin
Dave Kreskowiak5-May-05 4:10
mveDave Kreskowiak5-May-05 4:10 
GeneralRe: Modules Pin
memee815-May-05 5:34
memee815-May-05 5:34 
GeneralRe: Modules Pin
Dave Kreskowiak5-May-05 5:55
mveDave Kreskowiak5-May-05 5:55 
Generalhandles for api calls in VB Pin
embrt4-May-05 12:07
embrt4-May-05 12:07 
GeneralRe: handles for api calls in VB Pin
rwestgraham4-May-05 15:28
rwestgraham4-May-05 15:28 
GeneralRe: handles for api calls in VB Pin
Dave Kreskowiak5-May-05 4:14
mveDave Kreskowiak5-May-05 4:14 
GeneralRe: handles for api calls in VB Pin
embrt5-May-05 4:44
embrt5-May-05 4:44 

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.