Faculty of Information Technology
Software Engineering Group

Opened 17 months ago

Last modified 17 months ago

#207 new defect

When using 16bit depth Image fromView:grab: produces 24bit image

Reported by: Patrik Svestka Owned by:
Priority: major Milestone:
Component: default Keywords:
Cc: Also affects CVS HEAD (eXept version): no

Description

When running 16bit depth in linux (on windows the 24bit is fixed see #201).

Creating a snapshot image via e.g. Image fromView:textView grab:false. produces a 24bit image.

Attachments (1)

ImageTests-test_issue_207_snapshot_16bpp_produces_24bpp_image.st (732 bytes) - added by Patrik Svestka 17 months ago.
16bpp produces 24bpp image when grabbed from screen

Download all attachments as: .zip

Change History (2)

comment:1 Changed 17 months ago by Patrik Svestka

I'm attaching testcase that should pass when running on 16bpp (please note that there is a #isDepth16Image selector which has been created in #126).

Here is the source:

isDepth16Image
    "return true if the image is instance of Depth16Image"
   (self bitsPerPixel == 16) ifTrue:[^ true].  
    ^ false

    "Created: / 16-04-2018 / 16:59:55 / svestkap"

Changed 17 months ago by Patrik Svestka

16bpp produces 24bpp image when grabbed from screen

Note: See TracTickets for help on using tickets.