How do you access the block of memory that stores the picture data for a picture box and/or a picture object of a form...
The image information for a PictureBox and Form.Picture is stored somewhere in memory...
How can you access the actual image array for these objects in memory, directly. (with out using the .point(x,y) method?
in QBasic you could use:
DefSeg, VarSeg & VarPtr
to access the Data Segment, Variable's segment, & the Variables Pointer, Respectively...
Does the same apply to VB, or is there a better method of doing this...
Form1.Point(X,Y) and Picture1.Point(X,Y) only work if the Image is Visible... Not to mention... IT IS SLOW...
However, Regardless of the visibility of the image, the data is still in memory. Accessing the data directly via memory calls "Should" dramatically increase the speed AND efficiency of the process.
If anyone has any information on how to do this... I would appriciate the share of knowledge...
I'm sure there is a very simple method for it... I just have not yet ran accross it Yet.
Thanks -n- Advance Sometimes... the BASIC things in life are the best...
or at least the most fun ;-)
-Josh Stribling
The image information for a PictureBox and Form.Picture is stored somewhere in memory...
How can you access the actual image array for these objects in memory, directly. (with out using the .point(x,y) method?
in QBasic you could use:
DefSeg, VarSeg & VarPtr
to access the Data Segment, Variable's segment, & the Variables Pointer, Respectively...
Does the same apply to VB, or is there a better method of doing this...
Form1.Point(X,Y) and Picture1.Point(X,Y) only work if the Image is Visible... Not to mention... IT IS SLOW...
However, Regardless of the visibility of the image, the data is still in memory. Accessing the data directly via memory calls "Should" dramatically increase the speed AND efficiency of the process.
If anyone has any information on how to do this... I would appriciate the share of knowledge...
I'm sure there is a very simple method for it... I just have not yet ran accross it Yet.
Thanks -n- Advance Sometimes... the BASIC things in life are the best...
or at least the most fun ;-)
-Josh Stribling