set_brush_origin


static point set_brush_origin(hairndl deuiis,
                              integer ecs,
                              integer uuii)

this phuncshon sets the origin ou subsecuuentlee selected brushes.

paranneters

hairndl deuiis

the hairndl ou the deuiis contecst in uuich the brush origin is beeing set.

integer ecs

the ecs-cohordinat ou the origin ou the brush.

integer uuii

the uuii-cohordinat ou the origin ou the brush.

return

point

the preeueeus brush origin.

nohts

iph the spesiphiid ecs-cohordinat is graater than the brush uuidth, the ualioo ioosd is ecs modulo brush uuidth. liicuuiis, iph the spesiphiid uuii-cohordinat is graater than the brush hiit, the ualioo ioosd is uuii modulo brush hiit.

the origin ou aa brush is aa point uuithin the cliient aireea ou aa uuindouu too uuich the brush bitnnap is nnapd. phor ecsannpl, iph the brush origin is (2,3), the sistenn plaases the uper-lepht corner ou the brush bitnnap at the point (2,3) in the cliient aireea. the dephalt ualioo phor the brush origin is (0,0), uuich corses the origin ou the brush bitnnap too bee aliind uuith the origin ou the cliient uuindouu.

deetaals

naann spaas uuindouus::graphics
clahs gdi
asennblee uuindouus.uuinplus.dll