Revision history for KeyPgScreencopy


Revision [22040]

Last edited on 2017-12-13 02:46:58 by fxm [Added the "Return value" paragraph]
Additions:
The error code returned by ##**Screencopy**## can be checked using ##[[KeyPgErr|Err]]## in the next line. The function version of ##**Screencopy**## returns directly the error code as a 32 bit ##[[KeyPgLong|Long]]##.


Revision [22037]

Edited on 2017-12-13 02:32:28 by fxm [Added the "Return value" paragraph]
Additions:
{{fbdoc item="ret"}}
Returns zero (##0##) if successful, or a non-zero error code to indicate a failure.


Revision [21120]

Edited on 2016-03-13 10:11:11 by fxm [Formatting]
Additions:




Revision [20501]

Edited on 2016-02-10 16:08:07 by DkLwikki [Update link format]
Additions:
[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] **Screencopy** ( [[KeyPgByval|byval]] //from_page// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1, [[KeyPgByval|byval]] //to_page// [[KeyPgAs|as]] [[KeyPgLong|long]] = -1 ) [[KeyPgAs|as]] [[KeyPgLong|long]]
##//from_page//## is the page to copy from. If this argument is omitted, the current work page is assumed. ##//to_page//## is the page to copy to. If this argument is omitted, the currently visible page is assumed. Page numbers range from ##0## to ##//num_pages// - 1##, where ##//num_pages//## is the number of pages specified when setting the graphics mode with ##[[KeyPgScreenres|Screenres]]## or ##[[KeyPgScreengraphics|Screen]]##.
There are two other functions similar to this: ##[[KeyPgFlip|Flip]]## and ##[[KeyPgPcopy|PCopy]]##. ##[[KeyPgFlip|Flip]]## is designed to work in ""OpenGL"" modes, while ##[[KeyPgPcopy|PCopy]]## supports console pages on some platforms. Both do the same thing as ##**Screencopy**## in normal graphics modes.
See also ##[[KeyPgScreenset|Screenset]]## example.
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect unless referenced with the alias ##**""__Screencopy""**##.
- New to ""FreeBASIC"". It is a graphics-only version of ##[[KeyPgPcopy|Pcopy]]## - which works in both text and graphics modes.
- ##[[KeyPgPcopy|Pcopy]]##
- ##[[KeyPgScreengraphics|Screen (Graphics)]]##
- ##[[KeyPgScreenres|Screenres]]##
- ##[[KeyPgScreenset|Screenset]]##
Deletions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Screencopy** ( [[KeyPgByval byval]] //from_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1, [[KeyPgByval byval]] //to_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1 ) [[KeyPgAs as]] [[KeyPgLong long]]
##//from_page//## is the page to copy from. If this argument is omitted, the current work page is assumed. ##//to_page//## is the page to copy to. If this argument is omitted, the currently visible page is assumed. Page numbers range from ##0## to ##//num_pages// - 1##, where ##//num_pages//## is the number of pages specified when setting the graphics mode with ##[[KeyPgScreenres Screenres]]## or ##[[KeyPgScreengraphics Screen]]##.
There are two other functions similar to this: ##[[KeyPgFlip Flip]]## and ##[[KeyPgPcopy PCopy]]##. ##[[KeyPgFlip Flip]]## is designed to work in ""OpenGL"" modes, while ##[[KeyPgPcopy PCopy]]## supports console pages on some platforms. Both do the same thing as ##**Screencopy**## in normal graphics modes.
See also ##[[KeyPgScreenset Screenset]]## example.
- Not available in the //[[CompilerOptlang -lang qb]]// dialect unless referenced with the alias ##**""__Screencopy""**##.
- New to ""FreeBASIC"". It is a graphics-only version of ##[[KeyPgPcopy Pcopy]]## - which works in both text and graphics modes.
- ##[[KeyPgPcopy Pcopy]]##
- ##[[KeyPgScreengraphics Screen (Graphics)]]##
- ##[[KeyPgScreenres Screenres]]##
- ##[[KeyPgScreenset Screenset]]##


Revision [17540]

Edited on 2015-04-01 12:45:55 by DkLwikki [integer => long]
Additions:
[[KeyPgDeclare declare]] [[KeyPgFunction function]] **Screencopy** ( [[KeyPgByval byval]] //from_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1, [[KeyPgByval byval]] //to_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1 ) [[KeyPgAs as]] [[KeyPgLong long]]
Deletions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Screencopy** ( [[KeyPgByval byval]] //from_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1, [[KeyPgByval byval]] //to_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1 )


Revision [17539]

Edited on 2015-04-01 12:45:31 by DkLwikki [integer => long]
Additions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Screencopy** ( [[KeyPgByval byval]] //from_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1, [[KeyPgByval byval]] //to_page// [[KeyPgAs as]] [[KeyPgLong long]] = -1 )
Deletions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Screencopy** ( [[KeyPgByval byval]] //from_page// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, [[KeyPgByval byval]] //to_page// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1 )


Revision [17321]

Edited on 2014-10-08 17:00:24 by FxMwikki [Screencopy is inactive if the destination page is locked]
Additions:
##**Screencopy**## is inactive if the destination page is locked.
Deletions:
The copy is inactive if the destination page is locked.


Revision [17319]

Edited on 2014-10-08 16:42:00 by FxMwikki [The copy is inactive if the destination page is locked]
Additions:
The copy is inactive if the destination page is locked.


Revision [16734]

Edited on 2013-04-29 00:11:09 by CountingPine [Clear up description a little]
Additions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Screencopy** ( [[KeyPgByval byval]] //from_page// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, [[KeyPgByval byval]] //to_page// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1 )
##//from_page//##
##//to_page//##
##//from_page//## is the page to copy from. If this argument is omitted, the current work page is assumed. ##//to_page//## is the page to copy to. If this argument is omitted, the currently visible page is assumed. Page numbers range from ##0## to ##//num_pages// - 1##, where ##//num_pages//## is the number of pages specified when setting the graphics mode with ##[[KeyPgScreenres Screenres]]## or ##[[KeyPgScreengraphics Screen]]##.
You can use this function to add a double buffer to your graphics. Any graphics screen mode with multiple pages supports this function.
There are two other functions similar to this: ##[[KeyPgFlip Flip]]## and ##[[KeyPgPcopy PCopy]]##. ##[[KeyPgFlip Flip]]## is designed to work in ""OpenGL"" modes, while ##[[KeyPgPcopy PCopy]]## supports console pages on some platforms. Both do the same thing as ##**Screencopy**## in normal graphics modes.
See also ##[[KeyPgScreenset Screenset]]## example.
Deletions:
[[KeyPgDeclare declare]] [[KeyPgSub sub]] **Screencopy** ( [[KeyPgByval byval]] //frompage// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1, [[KeyPgByval byval]] //topage// [[KeyPgAs as]] [[KeyPgInteger integer]] = -1 )
##//frompage//##
##//topage//##
##//from_page//## is the page to copy from. If this argument is omitted, the current work page is assumed.
##//to_page//## is the page to copy to. If this argument is omitted, the currently visible page is assumed.
Page numbers range from 0 to the num_pages specified when setting the graphics mode minus 1
You can use this function to add a double buffer to your graphics. Any graphics screen mode supports this function; you must supply valid page numbers otherwise ##**Screencopy**## will have no effect.
There are two other functons similar to this: ##[[KeyPgFlip Flip]]## and ##[[KeyPgPcopy PCopy]]##. ##[[KeyPgFlip Flip]]## is designed to work in ""OpenGL"" modes, while ##[[KeyPgPcopy PCopy]]## supports console pages on some platforms. Both do the same thing as ##**Screencopy**## in normal graphics modes.
Example:
See ##[[KeyPgScreenset Screenset]]## example.


Revision [16212]

Edited on 2012-06-27 11:05:20 by CountingPine [Pcopy also works in the console]
Additions:
- New to ""FreeBASIC"". It is a graphics-only version of ##[[KeyPgPcopy Pcopy]]## - which works in both text and graphics modes.
- ##[[KeyPgPcopy Pcopy]]##
Deletions:
- New to ""FreeBASIC"". QB had ##[[KeyPgPcopy Pcopy]]## to do the same function.


Revision [15333]

Edited on 2011-10-02 10:43:13 by FxMwikki [Example: comment more detailed]
Additions:
'' image for working page #1 (visible page #0)
'' image for working page #2 (visible page #0)
'' page #0 is the working page (visible page #0)
Deletions:
'' image for page #1
'' image for page #2
'' page #0 is the visible page


Revision [14437]

Edited on 2009-08-29 21:56:50 by CountingPine [Remove CamelCase links in "New to FreeBASIC"]
Additions:
- New to ""FreeBASIC"". QB had ##[[KeyPgPcopy Pcopy]]## to do the same function.
Deletions:
- New to FreeBASIC. QB had ##[[KeyPgPcopy Pcopy]]## to do the same function.


Revision [14140]

Edited on 2009-05-19 01:35:15 by CountingPine [Explain about differences in FLIP/PCOPY]
Additions:
You can use this function to add a double buffer to your graphics. Any graphics screen mode supports this function; you must supply valid page numbers otherwise ##**Screencopy**## will have no effect.
There are two other functons similar to this: ##[[KeyPgFlip Flip]]## and ##[[KeyPgPcopy PCopy]]##. ##[[KeyPgFlip Flip]]## is designed to work in ""OpenGL"" modes, while ##[[KeyPgPcopy PCopy]]## supports console pages on some platforms. Both do the same thing as ##**Screencopy**## in normal graphics modes.
Deletions:
You can use this function to add a double buffer to your graphics. Any SCREEN mode supports this function; you must supply valid page numbers otherwise ##**Screencopy**## will have no effect. This function has two aliases: ##[[KeyPgFlip Flip]]## and ##[[KeyPgPcopy PCopy]]##.


Revision [13173]

The oldest known version of this page was created on 2008-04-24 15:44:05 by JeffMarshall [Explain about differences in FLIP/PCOPY]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode