Syntax
Result = dbGetImage(ImageID, Left, Top, Right, Bottom [, TextureFlag])
Description
If #PB_Any is used as the ImageID parameter, the new ID will be returned as 'Result'. Otherwise the value of 'Result' is the same value passed as the ImageID parameter.
This command will copy a selected area of the current bitmap. Amongst other things, you can use this command to store sequences of image data and provide animations for sprites. When images are grabbed, they are stored in memory and do not require the bitmap from which the image was taken. You cannot grab an image while the target pixels are being locked by the dbLockPixels command, as it is not possible to read from a surface that is using the fast write only lock method on the pixels.
'TextureFlag' can be any one of the following values:#GDK_Image_StretchFilterColorKey : stretching, filter, colorkey
#GDK_Image_ColorKey : no stretching, no filter, colorkey
#GDK_Image_Stretch : stretching, no filter, no colorkey (grab from alpha bitmap retain alpha channel)
#GDK_Image_Raw : no stretching, no filter, no colorkey (grab from alpha bitmap retain alpha channel)