开发者

Load from resources, or draw them myself

开发者 https://www.devze.com 2022-12-29 22:39 出处:网络
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..

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

精彩评论

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

关注公众号