c# graphics for a card game

Hello Experts!!!

How do you get individual cards out of an image where they are all together (see attached pic)...  Is this the standard way of generating cards, is there a better way?  (Like having individual graphics in a resource file)

I'd like to know the how, the why and the best practices;  References are awesome, experience is awesome (er), lol

Thank you in advance,

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

kaufmed   ( ⚆ _ ⚆ )Commented:
I can't speak to best practices since I don't do game or graphics programming, but in its simplest form you simply need to load the sprite into memory, and then read a block of pixels from the original image. You should already know how large each card is--I would assume them all to be the same size. You should also know how many are in a row, and how many rows you have. Therefore, it's a simple matter of math to grab any particular card from the original image. The hardest part might be recreating the header information...but I would think you'd only have to do that once--every card could reuse that same header info.

We would need to know what kind of project this is, though. The process for implementing this would be slightly different for Windows Forms, WPF, and ASP.NET.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
the_b1ackfoxTechnophileAuthor Commented:
It isn't for a project...  Well, not yet.  I am asking so I can understand the process, I may apply this with a simple card game down the line.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.