open image as binary

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dinesh007
    New Member
    • Oct 2007
    • 1

    #1

    open image as binary

    well i want to use the pixel of an image , if some how it is possible to have the 2D array of pixels. in vb .
    OR
    open image as a Binary String which will give us the string in binary not in special characters.

    then plz reply soon thnx in advance.
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    try this sample

    [CODE=vb]Const ubx = 1000
    Const uby = 1000
    Dim pixels(1 To ubx, 1 To uby) As Long

    Dim X As Integer, Y As Integer
    For X = 1 To ubx
    For Y = 1 To uby
    pixels(X, Y) = Picture1.Point( X, Y)
    Next Y
    Next X

    For X = 1 To ubx
    For Y = 1 To uby
    Next Y
    Next X[/CODE]

    Comment

    Working...