Here is an example on how to achieve the same effect with DBPro only.
Sync On
Sync Rate 0
CameraID = 1
ImageID = 1
Left = 50
Top = 50
Right = 300
Bottom = 200
make Camera CameraID ` Create camera
set camera to image CameraID , ImageID , Right - Left , Bottom - Top ` Set the camera to an image so we can paste it where we want using Paste Image
` Draw a grey box to the camera so we have a grey background
Set Current Bitmap -CameraID
Box 0 , 0 , Right - Lef , Bottom - Top , rgb(100,100,100) , rgb(100,100,100) , rgb(100,100,100) , rgb(100,100,100)
Set Current Bitmap 0
Do
Set Current Bitmap -CameraID ` Set the current bitmap to the camera so everything is drawed directly to the camera
` Make sure to decrease the x position by the left top of the clipping box
` Since the drawing to the bitmap will start from the left top of the screen
` Also do this for the y position.
` !!! When drawing sprites to the camera, you need to use Paste Sprite, Creating a sprite using "Sprite , x , y , Image" won't work
Text 19 - Left , 100 - Top , "Long text to test if the clipping is right."
Set Current Bitmap 0 ` Set the current bitmap back to the normal
` paste the camera image at the right position
Paste Image ImageID , Left , Top
Text 19 , 150 , "Long text to test if the clipping is right."
Text 10 , 10 , Str$( Screen Fps() )
` We don't need to sync the camera we created for clipping because we draw directly to it, so we use a sync mask to only draw the main camera
Sync Mask 1
Sync
Loop
I created a 'content browser' using the same technique, you can see it here:
http://www.thegamecreators.com/?m=gallery_view&i=1569&p=0