c++11 - What does the offset parameter in BeginDraw() mean,and how to use it? -


in isurfaceimagesourcenative::begindraw can see parameter:offset, msdn said receives point (x,y) offset of surface drawn into.but don't know if represents upper-left of surface or lower-right corner.and what's meaning appears here.how use it.

regards& halcyons

the offset value represents 2d offset (x = right, y = down) app should apply prior rendering surface. example, in order draw point @ logical location (a,b) relative origin (top-left) of surfaceimagesource, point should drawn @ location (a+offset.x, b+offset.y) on idxgisurface.

for example of how draw using surfaceimagesource, check out magazine sample on msdn.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -