Load from resources, or draw them myself
Are there any benefit in me drawing my own buttons (just开发者_运维百科 rectangles) over loading 80 of them from resources?
It depends on the complexity of the drawn buttons..
"More complex drawings = more processing time .."
But images somehow have constant time loading
"Whatever the image looks like = nearly same processing time.."
Conculsion:
I will prefer drawing buttons if few simple operations are in
But in more complex cases (like color gradient or something) , I prefer stored images..
Also note that some UI must be done in gdi+ and can not be done otherwise..
for example circular buttons or animations..
Stored images don't have full flexibility of GDI+
精彩评论