Revision history for KeyPgCustomgfx


Revision [22756]

Last edited on 2019-07-04 00:14:05 by fxm [merged the page POINTER (KeyPgPointer) within page PTR (KeyPgPtr)]
Additions:
optional ##[[KeyPgPtr|pointer]]## to be passed to the custom function; if omitted, the default value is zero (##0##).
Deletions:
optional ##[[KeyPgPointer|pointer]]## to be passed to the custom function; if omitted, the default value is zero (##0##).


Revision [21632]

Edited on 2016-10-30 17:48:05 by fxm [Formatting]
Additions:


Revision [20871]

Edited on 2016-03-12 16:13:46 by fxm [Formatting]

No Differences

Revision [20118]

Edited on 2016-02-10 15:56:25 by DkLwikki [Update link format]
Additions:
Parameter to the ##[[KeyPgPutgraphics|Put]]## graphics statement which selects a custom method
optional ##[[KeyPgPointer|pointer]]## to be passed to the custom function; if omitted, the default value is zero (##0##).
The ##Custom## method uses a user-defined function to calculate the final pixel values to be drawn to the destination buffer. This function will be called once for every pixel of the source image, and will receive the source and destination pixel values, and a data pointer passed by the ##[[KeyPgPutgraphics|Put]]## function. The pixel value returned will be the value used to draw to the destination buffer. The function has the form:
##[[KeyPgDeclare|declare]] [[KeyPgFunction|function]] //identifier// ( _
[[KeyPgByval|byval]] //source_pixel// [[KeyPgAs|as]] [[KeyPgUinteger|uinteger]], _
[[KeyPgByval|byval]] //destination_pixel// [[KeyPgAs|as]] [[KeyPgUinteger|uinteger]], _
[[KeyPgByval|byval]] //parameter// [[KeyPgAs|as]] [[KeyPgAny|any]] [[KeyPgPtr|ptr]] _
) [[KeyPgAs|as]] [[KeyPgUinteger|uinteger]]##
##//parameter//## is the parameter that is passed by the ##[[KeyPgPutgraphics|Put]]## command. If it was omitted, its value will be zero.
return source_pixel
return destination_pixel
- Not available in the //[[CompilerOptlang|-lang qb]]// dialect.
- ##[[KeyPgPutgraphics|Put (Graphics)]]##
Deletions:
Parameter to the ##[[KeyPgPutgraphics Put]]## graphics statement which selects a custom method
optional ##[[KeyPgPointer pointer]]## to be passed to the custom function; if omitted, the default value is zero (##0##).
The ##Custom## method uses a user-defined function to calculate the final pixel values to be drawn to the destination buffer. This function will be called once for every pixel of the source image, and will receive the source and destination pixel values, and a data pointer passed by the ##[[KeyPgPutgraphics Put]]## function. The pixel value returned will be the value used to draw to the destination buffer. The function has the form:
##[[KeyPgDeclare declare]] [[KeyPgFunction function]] //identifier// ( _
[[KeyPgByval byval]] //source_pixel// [[KeyPgAs as]] [[KeyPgUinteger uinteger]], _
[[KeyPgByval byval]] //destination_pixel// [[KeyPgAs as]] [[KeyPgUinteger uinteger]], _
[[KeyPgByval byval]] //parameter// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] _
) [[KeyPgAs as]] [[KeyPgUinteger uinteger]]##
##//parameter//## is the parameter that is passed by the ##[[KeyPgPutgraphics Put]]## command. If it was omitted, its value will be zero.
return source_pixel
return destination_pixel
- Not available in the //[[CompilerOptlang -lang qb]]// dialect.
- ##[[KeyPgPutgraphics Put (Graphics)]]##


Revision [14056]

Edited on 2008-12-17 13:08:12 by CountingPine [Formatting]
Additions:
optional ##[[KeyPgPointer pointer]]## to be passed to the custom function; if omitted, the default value is zero (##0##).
##[[KeyPgDeclare declare]] [[KeyPgFunction function]] //identifier// ( _
[[KeyPgByval byval]] //source_pixel// [[KeyPgAs as]] [[KeyPgUinteger uinteger]], _
[[KeyPgByval byval]] //destination_pixel// [[KeyPgAs as]] [[KeyPgUinteger uinteger]], _
[[KeyPgByval byval]] //parameter// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] _
) [[KeyPgAs as]] [[KeyPgUinteger uinteger]]##
##//identifier//## is the name of the function.
- New to ""FreeBASIC""
Deletions:
optional [[KeyPgPointer pointer]] to be passed to the custom function; if omitted, the default value is zero.
##[[KeyPgDeclare declare]] [[KeyPgFunction function]] //identifier// ( [[KeyPgByval byval]] //source_pixel// [[KeyPgAs as]] [[KeyPgUinteger uinteger]], [[KeyPgByval byval]] //destination_pixel// [[KeyPgAs as]] [[KeyPgUinteger uinteger]], [[KeyPgByval byval]] //parameter// [[KeyPgAs as]] [[KeyPgAny any]] [[KeyPgPtr ptr]] ) [[KeyPgAs as]] [[KeyPgUinteger uinteger]]##
##//identifier//## is the name of the function. Can be anything.
- New to FreeBASIC


Revision [12255]

The oldest known version of this page was created on 2008-01-18 14:09:07 by JeffMarshall [Formatting]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki



sf.net phatcode