vb.net - Circular images -


in application, users allowed choose picture want , picture shows in picturebox. want know if there way picture select becomes circular instead of square? want images select circle shaped.

is there anyway this? doesn't have picturebox control, can accomplish fine

i tried no luck - http://www.codeproject.com/questions/430531/circle-shaped-picture-box

not smartest way, worked me in similar task. if picturebox fixed size, can create "mask" hide corners.

just draw image in png transparent circle in middle , make rest same color form. use image image propperty of each imagebox , set image "backgroundimage" property. way, image circle-shaped.

if need imageboxes of different size, can create circle mask programmatically.

edit: if prepare calculation of circle, can use "crop" images circle shape. depends on want these images later. need use them later in circle or rectangle shape?


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -