DrawImage with source area

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
grabiller
Enthusiast
Enthusiast
Posts: 309
Joined: Wed Jun 01, 2011 9:38 am
Location: France - 89220 Rogny-Les-Septs-Ecluses
Contact:

DrawImage with source area

Post by grabiller »

Hi,

Not sure if this has been already asked for, but it would be nice for PureBasic to have a DrawImage() version with which you can specify the source x,y,width,height (like the StretchBlt in Windows API).

This would avoid the need to split images in 3 or 9 for widget drawing for instance, and I'm sure there would be a lot of other uses.

Cheers,
Guy.
guy rabiller | radfac founder / ceo | raafal.org