Revision history for KeyPgPset


Revision [22012]

Last edited on 2017-11-21 01:11:41 by JeffMarshall [fix page link name case]
Additions:
Speed note: while ##**PSet**## provides valid results, it is quite slow to call repeatedly due to the overhead of additional calculations and checks. Much better performance can be achieved by using direct memory access using the results obtained from ##[[KeyPgImageInfo|Imageinfo]]## and ##[[KeyPgScreeninfo|Screeninfo]]##/##[[KeyPgScreenptr|ScreenPtr]]##.
Deletions:
Speed note: while ##**PSet**## provides valid results, it is quite slow to call repeatedly due to the overhead of additional calculations and checks. Much better performance can be achieved by using direct memory access using the results obtained from ##[[KeyPgImageinfo|Imageinfo]]## and ##[[KeyPgScreeninfo|Screeninfo]]##/##[[KeyPgScreenptr|ScreenPtr]]##.


Revision [21097]

Edited on 2016-03-13 09:30:28 by fxm [Formatting]
Additions:




Revision [20470]

Edited on 2016-02-10 16:07:17 by DkLwikki [Update link format]
Additions:
##//target//## specifies buffer to draw on. ##//target//## may be an image created with ##[[KeyPgImagecreate|ImageCreate]]## or ##[[KeyPgGetgraphics|Get (Graphics)]]##. If omitted, ##//target//## defaults to the screen's current work page.
##(//x, y//)## are the coordinates of the pixel. ##STEP## if present, indicates that ##(//x, y//)## coordinates are relative to the graphics cursor position. If omitted, ##(//x, y//)## are relative to the upper left-hand corner of ##//target//##. The x and y coordinates are affected by the last call to the ##[[KeyPgViewgraphics|View (Graphics)]]## and ##[[KeyPgWindow|Window]]## statements, and respect the current clipping region as set by the ##[[KeyPgViewgraphics|View (Graphics)]]## statement.
Speed note: while ##**PSet**## provides valid results, it is quite slow to call repeatedly due to the overhead of additional calculations and checks. Much better performance can be achieved by using direct memory access using the results obtained from ##[[KeyPgImageinfo|Imageinfo]]## and ##[[KeyPgScreeninfo|Screeninfo]]##/##[[KeyPgScreenptr|ScreenPtr]]##.
- ##[[KeyPgPoint|Point]]## - read out pixels
- ##[[KeyPgPreset|PReset]]##
- ##[[KeyPgViewgraphics|View (Graphics)]]##
- ##[[KeyPgWindow|Window]]##
- ##[[GfxInternalFormats|Internal pixel formats]]##
Deletions:
##//target//## specifies buffer to draw on. ##//target//## may be an image created with ##[[KeyPgImagecreate ImageCreate]]## or ##[[KeyPgGetgraphics Get (Graphics)]]##. If omitted, ##//target//## defaults to the screen's current work page.
##(//x, y//)## are the coordinates of the pixel. ##STEP## if present, indicates that ##(//x, y//)## coordinates are relative to the graphics cursor position. If omitted, ##(//x, y//)## are relative to the upper left-hand corner of ##//target//##. The x and y coordinates are affected by the last call to the ##[[KeyPgViewgraphics View (Graphics)]]## and ##[[KeyPgWindow Window]]## statements, and respect the current clipping region as set by the ##[[KeyPgViewgraphics View (Graphics)]]## statement.
Speed note: while ##**PSet**## provides valid results, it is quite slow to call repeatedly due to the overhead of additional calculations and checks. Much better performance can be achieved by using direct memory access using the results obtained from ##[[KeyPgImageinfo Imageinfo]]## and ##[[KeyPgScreeninfo Screeninfo]]##/##[[KeyPgScreenptr ScreenPtr]]##.
- ##[[KeyPgPoint Point]]## - read out pixels
- ##[[KeyPgPreset PReset]]##
- ##[[KeyPgViewgraphics View (Graphics)]]##
- ##[[KeyPgWindow Window]]##
- ##[[GfxInternalFormats Internal pixel formats]]##


Revision [15167]

Edited on 2011-08-08 04:10:31 by CountingPine [Speed note: additional info; remove note about asm]
Additions:
Speed note: while ##**PSet**## provides valid results, it is quite slow to call repeatedly due to the overhead of additional calculations and checks. Much better performance can be achieved by using direct memory access using the results obtained from ##[[KeyPgImageinfo Imageinfo]]## and ##[[KeyPgScreeninfo Screeninfo]]##/##[[KeyPgScreenptr ScreenPtr]]##.
Deletions:
Optimization note: while **Pset** and the opposite ##[[KeyPgPoint Point]]## provide valid results, they are very slow. Much better performance can be achieved by using ##[[KeyPgPoke Poke]]## after calculating the address yourself from values obtained from ##[[KeyPgImageinfo Imageinfo]]## and ##[[KeyPgScreeninfo Screeninfo]]##, or even more using inline ASM.


Revision [15164]

Edited on 2011-08-08 04:06:06 by CountingPine [Make example use the same screen mode as PSet]
Additions:
' Set an appropriate screen mode - 320 x 240 x 8bpp indexed color
Screenres 320, 240, 8
' Explicit end of program
Deletions:
' Set an appropriate screen mode - 320 x 240 x 8bpp indexed color !!!FIXME!!!
Screen 14
' Close the program


Revision [15144]

Edited on 2011-08-07 04:10:52 by DoS386 [someone please fix the examples too >PSET<+POINT both same screen ...]
Additions:
##//color//## specifies the color attribute, as an 8-bit palette index in 8 bpp indexed modes, a 24-bit RGB value in 16 bpp modes (upper 8 bits of the integer unused, limited precision of R,G,B), and a 32-bit RGB or RGBA value in 32 bpp modes (upper 8 bits unused or holding Alpha). Note that it does NOT accept a 16-bit value (5 bits R + 6 bits G + 5 bits B). If omitted, ##//color//## defaults to the current foreground color.
Deletions:
##//color//## specifies the color attribute, as an 8-bit palette index in 8 bpp indexed modes, a 24-bit RGB value in 16 bpp modes (upper 8 bits of the integer unused, limited precision), and a 32-bit RGBA value in 32 bpp modes (upper 8 bits unused or holding Alpha). Note that it does NOT accept a 16-bit value (5 bits R + 6 bits G + 5 bits B). If omitted, ##//color//## defaults to the current foreground color.


Revision [15143]

Edited on 2011-08-07 04:09:21 by DoS386 [someone please fix the examples too >PSET<+POINT both same screen]
Additions:
##//color//## specifies the color attribute, as an 8-bit palette index in 8 bpp indexed modes, a 24-bit RGB value in 16 bpp modes (upper 8 bits of the integer unused, limited precision), and a 32-bit RGBA value in 32 bpp modes (upper 8 bits unused or holding Alpha). Note that it does NOT accept a 16-bit value (5 bits R + 6 bits G + 5 bits B). If omitted, ##//color//## defaults to the current foreground color.
Deletions:
##//color//## specifies the color attribute, as an 8-bit palette index in 8 bpp indexed modes, a 24-bit RGB value in 16 bpp modes, and a 32-bit RGBA value in 32 bpp modes. Note that it does NOT accept a 16-bit value (5 bits R + 6 bits G + 5 bits B). If omitted, ##//color//## defaults to the current foreground color.


Revision [15142]

Edited on 2011-08-07 02:36:13 by DoS386 [hopefully fixed, please upgrade example and use same SCREEN for >pset and point ....]
Additions:
##//color//## specifies the color attribute, as an 8-bit palette index in 8 bpp indexed modes, a 24-bit RGB value in 16 bpp modes, and a 32-bit RGBA value in 32 bpp modes. Note that it does NOT accept a 16-bit value (5 bits R + 6 bits G + 5 bits B). If omitted, ##//color//## defaults to the current foreground color.
' Set an appropriate screen mode - 320 x 240 x 8bpp indexed color !!!FIXME!!!
- In 16 bpp and 32 bpp modes, a 32-bit value is required instead of an 8-bit palette index
Deletions:
##//color//## specifies the color attribute. If omitted, ##//color//## defaults to the current foreground color. See ##[[KeyPgColor Color]]##. ##//color//## is graphics mode specific, see ##[[KeyPgColor Color]]## and ##[[KeyPgScreengraphics Screen (Graphics)]]## for details.
' Set an appropriate screen mode - 320 x 240 x 8bpp indexed color


Revision [15136]

Edited on 2011-08-07 01:55:33 by DoS386 [16bpp is still poorly documented]
Additions:
Optimization note: while **Pset** and the opposite ##[[KeyPgPoint Point]]## provide valid results, they are very slow. Much better performance can be achieved by using ##[[KeyPgPoke Poke]]## after calculating the address yourself from values obtained from ##[[KeyPgImageinfo Imageinfo]]## and ##[[KeyPgScreeninfo Screeninfo]]##, or even more using inline ASM.
' Set an appropriate screen mode - 320 x 240 x 8bpp indexed color
- ##[[KeyPgPoint Point]]## - read out pixels
- ##[[KeyPgPreset PReset]]##
- ##[[GfxInternalFormats Internal pixel formats]]##
Deletions:
Optimization note: while **Pset** and the opposite ##[[KeyPgPoint Point]]## provide valid results, they are very slow. Much better performance can be achieved by using ##[[KeyPgPoke Poke]]## after calculating the address yourself from values obtained from ##[[KeyPgImageinfo Imageinfo]]## and ##[[KeyPgScreeninfo Screeninfo]]##, or even more usig inline ASM.
' Set an appropriate Screen mode.
- ##[[KeyPgPoint Point]]## - read out pixels
- ##[[KeyPgPreset PReset]]##


Revision [14513]

Edited on 2009-11-05 23:20:41 by DoS386 [+optim note]
Additions:
Optimization note: while **Pset** and the opposite ##[[KeyPgPoint Point]]## provide valid results, they are very slow. Much better performance can be achieved by using ##[[KeyPgPoke Poke]]## after calculating the address yourself from values obtained from ##[[KeyPgImageinfo Imageinfo]]## and ##[[KeyPgScreeninfo Screeninfo]]##, or even more usig inline ASM.
- ##[[KeyPgPoint Point]]## - read out pixels
- ##[[KeyPgPreset PReset]]##
Deletions:
- ##[[KeyPgPoint Point]]##
- ##[[KeyPgPreset PReset]]##


Revision [14429]

Edited on 2009-08-29 21:56:37 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]
Additions:
- ##//target//## is new to ""FreeBASIC""
Deletions:
- ##//target//## new to FreeBASIC


Revision [11628]

The oldest known version of this page was created on 2007-11-10 09:13:43 by JeffMarshall [Remove CamelCase links in "New to FreeBASIC"]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode