From 2cc03efeb83018d57b0712ea682d24c540e4bb4a Mon Sep 17 00:00:00 2001 From: cxl Date: Sun, 2 Aug 2009 12:58:50 +0000 Subject: [PATCH] CtrlCore: SetSurface docs git-svn-id: svn://ultimatepp.org/upp/trunk@1469 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- .../CtrlCore/src.tpp/SystemDrawFn$en-us.tpp | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 uppsrc/CtrlCore/src.tpp/SystemDrawFn$en-us.tpp diff --git a/uppsrc/CtrlCore/src.tpp/SystemDrawFn$en-us.tpp b/uppsrc/CtrlCore/src.tpp/SystemDrawFn$en-us.tpp new file mode 100644 index 000000000..a5af538c2 --- /dev/null +++ b/uppsrc/CtrlCore/src.tpp/SystemDrawFn$en-us.tpp @@ -0,0 +1,34 @@ +topic ""; +[2 $$0,0#00000000000000000000000000000000:Default] +[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class] +[l288;2 $$2,2#27521748481378242620020725143825:desc] +[0 $$3,0#96390100711032703541132217272105:end] +[H6;0 $$4,0#05600065144404261032431302351956:begin] +[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item] +[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement] +[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param] +[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam] +[b42;2 $$9,9#13035079074754324216151401829390:normal] +[{_} +[ {{10000@(113.42.0) [s0;%% [*@7;4 SystemDraw utility functions]]}}&] +[s0;i448;a25;kKO9;@(0.0.255) &] +[ {{10000F(128)G(128)@1 [s0;%% [* Function List]]}}&] +[s4;H0; &] +[s5;:SetSurface`(Draw`&`,const Rect`&`,const RGBA`*`,Size`,Point`): [@(0.0.255) void]_[* S +etSurface]([_^Draw^ Draw][@(0.0.255) `&]_[*@3 w], [@(0.0.255) const]_[_^Rect^ Rect][@(0.0.255) `& +]_[*@3 dest], [@(0.0.255) const]_[_^RGBA^ RGBA]_`*[*@3 pixels], [_^Size^ Size]_[*@3 srcsz], +[_^Point^ Point]_[*@3 poff])&] +[s5;:SetSurface`(Draw`&`,int`,int`,int`,int`,const RGBA`*`): [@(0.0.255) void]_[* SetSurf +ace]([_^Draw^ Draw][@(0.0.255) `&]_[*@3 w], [@(0.0.255) int]_[*@3 x], [@(0.0.255) int]_[*@3 y], + [@(0.0.255) int]_[*@3 cx], [@(0.0.255) int]_[*@3 cy], [@(0.0.255) const]_[_^RGBA^ RGBA]_`*[*@3 p +ixels])&] +[s2;%% This function transfers RGBA pixels from buffer to target +Draw. If Draw represents window on the screen, function uses +optimized algorithm, otherwise transfer is performed by copying +pixels to Image and using DrawImage.&] +[s2;%% In the first variant, target area is [%-*@3 dest], [%-*@3 srcsz] +is the size of source [%-*@3 pixels] buffer, [%-*@3 poff].is offset +in source buffer (means, only part of source buffer can be copied).&] +[s2; [%% In the second variant, target area is ][*@3 x],[*@3 y],[*@3 cx],[*@3 cy] +and the source buffer has to have the same size as target.&] +[s3;%% ] \ No newline at end of file