Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. graduation project

graduation project

Scheduled Pinned Locked Moved Visual Basic
csharpdata-structures
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    salam ellayan
    wrote on last edited by
    #1

    hi sry i didn't understand ur answer so will u explain it by detailed code in VB.NET i need to convert the picture into 1's and 0's (points) and write code using array function then send it via GPRS connection . and i'll use UDP packet

    A H C 3 Replies Last reply
    0
    • S salam ellayan

      hi sry i didn't understand ur answer so will u explain it by detailed code in VB.NET i need to convert the picture into 1's and 0's (points) and write code using array function then send it via GPRS connection . and i'll use UDP packet

      A Offline
      A Offline
      Ashfield
      wrote on last edited by
      #2

      What they mean is nobody is going to write your code for you, so it looks like you will not graduate.

      Bob Ashfield Consultants Ltd

      1 Reply Last reply
      0
      • S salam ellayan

        hi sry i didn't understand ur answer so will u explain it by detailed code in VB.NET i need to convert the picture into 1's and 0's (points) and write code using array function then send it via GPRS connection . and i'll use UDP packet

        H Offline
        H Offline
        Hasan Jaffal
        wrote on last edited by
        #3

        :confused: waz up what's the question ?! :doh: :confused:

        S 1 Reply Last reply
        0
        • H Hasan Jaffal

          :confused: waz up what's the question ?! :doh: :confused:

          S Offline
          S Offline
          salam ellayan
          wrote on last edited by
          #4

          i need to convert the image into points.

          H 1 Reply Last reply
          0
          • S salam ellayan

            i need to convert the image into points.

            H Offline
            H Offline
            Hasan Jaffal
            wrote on last edited by
            #5

            witch image ?

            " I love deadlines. I like the whooshing sound they make as they fly by. "

            1 Reply Last reply
            0
            • S salam ellayan

              hi sry i didn't understand ur answer so will u explain it by detailed code in VB.NET i need to convert the picture into 1's and 0's (points) and write code using array function then send it via GPRS connection . and i'll use UDP packet

              C Offline
              C Offline
              Chinners
              wrote on last edited by
              #6

              Okay, I'll give you a pointer, assuming you know VB.net, but not much about the graphics classes.

                   Dim bmp As Bitmap = CType(Image.FromFile("c:\\bmp.png"), Bitmap)
                   For x As Integer = 0 To bmp.Width - 1
                      For y As Integer = 0 To bmp.Height - 1
                         Dim pixelAlpha As Byte = bmp.GetPixel(x, y).A
                         Dim pixelRed As Byte = bmp.GetPixel(x, y).R
                         Dim pixelGreen As Byte = bmp.GetPixel(x, y).G
                         Dim pixelBlue As Byte = bmp.GetPixel(x, y).B
                      Next
                   Next
              

              This should do the graphics bit - slowly, but it'll work. On the other side, you will need to use bmp.SetPixel...

              bmp.SetPixel(x, y, Color.FromArgb(pixelAlpha, pixelRed, pixelGreen, pixelBlue))

              The rest, I'm afraid, is up to you.

              S 2 Replies Last reply
              0
              • C Chinners

                Okay, I'll give you a pointer, assuming you know VB.net, but not much about the graphics classes.

                     Dim bmp As Bitmap = CType(Image.FromFile("c:\\bmp.png"), Bitmap)
                     For x As Integer = 0 To bmp.Width - 1
                        For y As Integer = 0 To bmp.Height - 1
                           Dim pixelAlpha As Byte = bmp.GetPixel(x, y).A
                           Dim pixelRed As Byte = bmp.GetPixel(x, y).R
                           Dim pixelGreen As Byte = bmp.GetPixel(x, y).G
                           Dim pixelBlue As Byte = bmp.GetPixel(x, y).B
                        Next
                     Next
                

                This should do the graphics bit - slowly, but it'll work. On the other side, you will need to use bmp.SetPixel...

                bmp.SetPixel(x, y, Color.FromArgb(pixelAlpha, pixelRed, pixelGreen, pixelBlue))

                The rest, I'm afraid, is up to you.

                S Offline
                S Offline
                salam ellayan
                wrote on last edited by
                #7

                thanks alot for cooperation . i'll try to complete it . thanks again

                1 Reply Last reply
                0
                • C Chinners

                  Okay, I'll give you a pointer, assuming you know VB.net, but not much about the graphics classes.

                       Dim bmp As Bitmap = CType(Image.FromFile("c:\\bmp.png"), Bitmap)
                       For x As Integer = 0 To bmp.Width - 1
                          For y As Integer = 0 To bmp.Height - 1
                             Dim pixelAlpha As Byte = bmp.GetPixel(x, y).A
                             Dim pixelRed As Byte = bmp.GetPixel(x, y).R
                             Dim pixelGreen As Byte = bmp.GetPixel(x, y).G
                             Dim pixelBlue As Byte = bmp.GetPixel(x, y).B
                          Next
                       Next
                  

                  This should do the graphics bit - slowly, but it'll work. On the other side, you will need to use bmp.SetPixel...

                  bmp.SetPixel(x, y, Color.FromArgb(pixelAlpha, pixelRed, pixelGreen, pixelBlue))

                  The rest, I'm afraid, is up to you.

                  S Offline
                  S Offline
                  salam ellayan
                  wrote on last edited by
                  #8

                  i've tried this code but when i run it it gives error . i could not find the problem so will u help me . thanx for ur help anyway.

                  S 1 Reply Last reply
                  0
                  • S salam ellayan

                    i've tried this code but when i run it it gives error . i could not find the problem so will u help me . thanx for ur help anyway.

                    S Offline
                    S Offline
                    salam ellayan
                    wrote on last edited by
                    #9

                    i've tried this code but it gives me error when i run it. so will u help me. Dim ImageFile As FileInfo = New FileInfo("c:\1.jpg") Dim fs As FileStream = New FileStream(ImageFile.FullName, FileMode.Open, FileAccess.Read) Dim ImageBytes() As Byte ReDim ImageBytes(CInt(ImageFile.Length)) fs.Read(ImageBytes, 0, CInt(ImageFile.Length))

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups