Results 1 to 6 of 6

Thread: {resolved} - BMP Bits n Bytes to RGB

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Dec 2005
    Location
    UK
    Posts
    127

    {resolved} - BMP Bits n Bytes to RGB

    right i've got this far with my image capture and cannot work out the best way to do this .... the user imports a BMP which is then converted to the following i can split the bmp into the exact grids but need to know how to get from a bmp format colours to RGB or Windows colours ...for rewriting back to the format of my files NOT bmp format ... its probably easy ... but this is the first time ive looked at image manipulation

    here's the code the write the colours back to the BMP and a picture of the screen so you can see what i mean

    VB Code:
    1. ' set blue
    2.                             Marshal.WriteByte(scan0, firstByte, blue)
    3.                             ' set green
    4.                             Marshal.WriteByte(scan0, firstByte + 1, green)
    5.                             ' set red
    6.                             Marshal.WriteByte(scan0, firstByte + 2, red)
    Attached Images Attached Images  
    Last edited by illskills; Jan 4th, 2006 at 01:27 PM. Reason: resolved

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width