qb64-include/point32.bm

17 lines
464 B
Text
Raw Normal View History

2022-09-19 13:14:03 +02:00
$if Point32 = undefined then
$let Point32 = defined
2022-10-05 10:35:21 +02:00
' ## Point32
' - syntax: ``Point32(x, y)``
' - Returns the 32 bit color value of pixel at x,y in any graphics mode.
' - Like ``Point``, ``Point32`` samples ``_Source``
2022-09-19 13:14:03 +02:00
function Point32~& (x as long, y as long)
select case _pixelsize
case 1
Point32 = _palettecolor(point(x,y), _source)
case 4
Point32 = point(x, y)
case else
Point32 = 0
end select
end function
$end if