Results 1 to 4 of 4

Thread: greyscale conversion

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 2001
    Location
    england
    Posts
    87

    Question greyscale conversion

    i have 16-bit pixel values which i want to draw using pset.

    if i just put that value in using pset all the colors are shades of red

    how do i convert these values into greyscale and use it with pset?

  2. #2
    Zaei
    Guest
    Use the RGB function. Simply set the 3 parameters to the same value, and you will get a shade of gray.

    Z.

  3. #3
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256
    Ex:

    VB Code:
    1. PSet (120, 120), vbBlack
    2. PSet (240, 120), RGB(112, 112, 112)
    3. PSet (480, 120), &HE0E0E0
    My evil laugh has a squeak in it.

    kristopherwilson.com

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Nov 2001
    Location
    england
    Posts
    87
    i cant use rgb() cause the value i have is 16 bit which is more than 255

    any other way ?

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