System.Drawing.Image for Images in Business Objects?
Posted
by Mudu
on Stack Overflow
See other posts from Stack Overflow
or by Mudu
Published on 2008-11-03T10:59:51Z
Indexed on
2010/04/30
17:47 UTC
Read the original article
Hit count: 336
Hi Folks
I'd like to store an image in a business object. In MSDN I saw that the System.Drawing-namespace provides lots of GDI+-features, etc.
Is it okay to store an Image in an System.Drawing.Image class in business layer (which is a class library "only"), and thus including a reference to System.Drawing too? I slightly feel just kind of bad doing that, 'cause it seems like I have UI-specific references in business code. Moreover, the code could become unnecessarily platform-dependant (though this is only a problem in theory, because we do not develop for multiple platforms).
If it isn't right that way, which type would fit best?
Thank you for any response!
Matthias
© Stack Overflow or respective owner