have several images, every image placed in writablebitmap. each images represent 1 layer, every image contain transparency. need combine images one, combine algorithm: show first image(without changes), after draw second image, on first, additional transparency x%, after third image additional transparency y%, etc. work use framework 4.5, programming language c# , vs2012.
help.
you dynamically create image controls in code , add them children collection of grid or other panel.
alternatively may use grid itemspanel of itemscontrol, , bind itemssource property collection of objects have image , opacity propetrty:
<itemscontrol itemssource="{binding imageitems}"> <itemscontrol.itemspanel> <itemspaneltemplate> <grid/> </itemspaneltemplate> </itemscontrol.itemspanel> <itemscontrol.itemtemplate> <datatemplate> <image source="{binding image}" opacity="{binding opacity}"/> </datatemplate> </itemscontrol.itemtemplate> </itemscontrol> in either case grid take care putting images on top of each other.
Comments
Post a Comment