how to load a bitmap image in vb.net using opengl..plz help me..

First try to load image date in to a byte array like this:

 BufferedInputStream bis = new BufferedInputStream(is);
         ByteArrayBuffer baf = new ByteArrayBuffer(bis.count);
         int current = 0;
         while ((current = bis.read()) != -1) {
                baf.append((byte)current);
          }
         byte[] imageData = baf.toByteArray();

then use decodeByteArray of BitmapFactory using "imageData"

BitmapFactory.decodeByteArray(imageData, 0, imageData.length)
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.