No announcement yet.

bitmap to bitmap stretching

  • Filter
  • Time
  • Show
Clear All
new posts

  • bitmap to bitmap stretching

    I'm fairly new to PBCC V5 and have not attempted much graphical stuff until recently, so forgive me if I ask daft-sounding questions!

    My aim is to load an image from a disk file into a BMP in its original dimensions and subsequently copy it, entire but resized, preserving its aspect ratio, into different parts of a GRAPHIC WINDOW.

    It seems easy enough to go straight from disk file to GW using GRAPHIC RENDER, or GRAPHIC LOAD, but to scale from one bitmap to another appears more difficult. I have tried using GRAPHIC RENDER and relying on the OS to buffer disk access for speed, but the result is still too slow for the application.

    I know that I can do something similar with the GDIPLUS library, but it would be great not to have to.

    Any suggestions?
    Last edited by Chris Holbrook; 12 Nov 2008, 05:26 AM.

  • #2
    StretchBlit + Halftone
    Patrice Terrier
    Addons: GDImage.DLL 32/64-bit (Graphic library), WinLIFT.DLL 32/64-bit (Skin Engine).


    • #3
      Simple. Just use the GRAPHIC STRETCH statement.


      • #4
        Thanks Patrice and Bob. Don't know how I missed GRAPIC STRETCH!