c# - When drawing on a canvas, does layout care about 1 pixel differences in size? -


if have object measures region size 100, , draw line 0-100 using brush pixel width of 2, content go outside measured region.

will fact content larger measured size force layout update? i'm wondering how picky layout system is.

anything draw canvas element clipped maximum size of canvas element and/or path if use as clip.

nothing draw canvas element through context invoke layout update of other elements in browser. context isolated , bitmap manipulate @ different level other elements in browser.

so answer no.

however, it's worth mention updates in browser may influence content of canvas (ie. clears it) have in mind, in particular browser window re-sizes. can listen resize event perform updates of canvas when necessary.


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -