[EDIT]
TDK post beat mine!
Though I think in 32 bit, you can have rgb(1,1,1) and it won't be transparent.
[original post at the same time as TDK]
I think what you are talking about is trying to control the alpha channel or set the transparency to another color. I don't think DarkBASIC allows that.
Since you want an area to be transparent, it doesn't really matter if it's colored black or white as those colors won't show only what's behind them. But, if you want to keep a black area non-transparent and another area have transparency, then you have the non-transparent black be less black.
sync on
sync rate 60
set display mode 800,600,32
ink rgb(255,0,0),0
box 0,0,256,256
ink 0,0
box 40,40,216,216
ink rgb(2,2,2),0
box 100,100,156,156
get image 1,0,0,257,257
sync
cls 128
x=100
y=100
ink rgb(255,255,255),0
text 100,300,"hjkg hdfjkh kjdh hgjkfgh See through gbn mbnvbjifhjk "
do
if leftkey()=1 then x=x-4
if rightkey()=1 then x=x+4
if upkey()=1 then y=y-4
if downkey()=1 then y=y+4
sprite 1,x,y,1
sync
loop
If you want to change a series of predefined images, you can do that too. Does your version of DBC have memblocks?
Enjoy your day.