View Full Version : Need help with making new Data Type for VB to work with OpenGL smoothly

03-09-2002, 03:23 PM
In Visual Basic looks like that: glReadPixel xpos, ypos, 1, 1, rpRed. pxlByte, Variable
How do you make new date type "pxlUnsignedByte" instead of pxlByte?

Reason I asked that is because pxlByte output is 0 to 127 and it discard any minus number in VB.


No slur please

03-09-2002, 10:41 PM
A VB string is the same as a uByte. try usinf that to get the data, then converting to an integer afterwards.