开发者

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+

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜