Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-17485

StretchBlt halftone mode doesn't work correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None

    Description

      On 20210215-0.4.15-dev-2056-g8b6e5e8.GNU_8.4.0:

      The StretchBlt function with setting STRETCH_HALFTONE mode by using SetStretchBltMode function doesn't work correctly.

      1. Extract HalftoneStretchBlt.zip.
      2. Execute HalftoneStretchBlt.exe in HalftoneStretchBlt folder.
      3. File output.bmp will be generated.
      4. The pixels must be RGB(64, 64, 64) in Windows, but RGB(0, 0, 0) in ReactOS.

      Generally, STRETCH_HALFTONE mode is used for smoothly stretching bitmap image.

      Attachments

        1. palette.c
          22 kB
        2. output-WinXP-SUCCESSFUL.bmp
          output-WinXP-SUCCESSFUL.bmp
          0.2 kB
        3. output-Win2k3-SUCCESSFUL.bmp
          output-Win2k3-SUCCESSFUL.bmp
          0.2 kB
        4. output-Win10-SUCCESSFUL.bmp
          output-Win10-SUCCESSFUL.bmp
          0.2 kB
        5. output-reactos-FAILED.bmp
          output-reactos-FAILED.bmp
          0.2 kB
        6. output2-smaller-stretchblt-halftone.bmp
          output2-smaller-stretchblt-halftone.bmp
          2 kB
        7. output2-smaller-bilinear.bmp
          output2-smaller-bilinear.bmp
          2 kB
        8. output2-larger-stretchblt-halftone.bmp
          output2-larger-stretchblt-halftone.bmp
          48 kB
        9. output2-larger-bilinear.bmp
          output2-larger-bilinear.bmp
          48 kB
        10. HalftoneStretchBlt.zip
          16 kB
        11. diff.bmp
          diff.bmp
          2 kB
        12. BilinearSharpen.zip
          39 kB
        13. BilinearSharpen.zip
          39 kB
        14. Bilinear.zip
          34 kB
        15. Bilinear.zip
          45 kB
        16. Bilinear.zip
          39 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              katayama_hirofumi_mz Katayama Hirofumi MZ
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: