Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: how to use setpixel in vb


Message #1 by "azian mohamad" <amohamad_my@h...> on Fri, 29 Mar 2002 07:21:26
hi experts,
I have a DLL in C++ where it supposed to capture an image from a scanner 
and the image is safe in pixels format.

I already have some codes in C++ on how to display the image on the screen 
(see below):-

char image[55760];

for(i=0; i<90; i++)  
   for(j=0; j<64; j++)
        theDC->setpixel(i,j,image[cnt++]);
    next j
next i


Now how I want to do the same thing as the codes above but in VB. I tried 
using codes below, but I get type mismatch. 

dim image as string * 5760
setpixel 90, 64, image

thanks for your help....
//azian

  Return to Index