Convert full RGBA to grayscale

  1. ‹ Older
  2. 5 weeks ago

    rem listbox 10* addrow =" "
    myicon= New Picture(100,40,32)
    myicon.Graphics.DrawPicture picture,40,0,60,40,0,0,bogenneu2.Width,bogenneu2.Height
    listbox1.RowPicture(1) =myicon

  3. Tim J

    Feb 13 Pre-Release Testers, Xojo Pro Dehydrating in AZ

    More details on the MBS solution -

    Using the MBS Picture.ScaleImageAndMaskMBS() function properly results in an image with a correctly maintained mask/alpha.

    It's now down to the GrayScaleMBS() function.

  4. Tim J

    Feb 13 Pre-Release Testers, Xojo Pro Dehydrating in AZ

    Two issues with MBS -

    GrayScaleMBS() loses the alpha/mask on all three platforms
    LinuxIconMBS.FileIcon() is messing up the alpha/Mask when scaling such that it's not processed properly by Xojo's ListBox.RowPicture().

  5. Christian S

    Feb 13 Pre-Release Testers, Xojo Pro, XDC Speakers Germany

    Create a new picture in Xojo, draw the icon picture there scaled and than use the new picture.

  6. Tim P

    Feb 13 Pre-Release Testers feedback://46303

    @Tim J GrayScaleMBS() loses the alpha/mask on all three platforms

    This is noted in the documentation (and isn't new)

  7. Tim J

    Feb 13 Pre-Release Testers, Xojo Pro Dehydrating in AZ

    @Christian Schmitz Create a new picture in Xojo, draw the icon picture there scaled and than use the new picture.

    Tried that. It seems that even using CopyPictureAndAlphaMBS() under Linux is not retaining the Alpha channel - or maybe I'm misunderstanding the procedure you're describing.

    @Tim P This is noted in the documentation (and isn't new)

    Except I'm not using a mask, but PNG files with an alpha channel. There is no mask to copy.

or Sign Up to reply!