April 2nd, 2013, 01:29 AM
C# Question: Images based on a variable
So in my code I have a variable called gameName, I want an image that will basically be the cover art for the game. How do I go about doing this?
private string gameName;
private string developer;
private string publisher;
private string releaseDate;
private string platform;
private string genre;
private int numPlayers;
private string description;
private Image boxArt;
gameName = "Void";
developer = "Void";
publisher = "Void";
releaseDate = "Void";
platform = "Void";
genre = "Void";
numPlayers = 1;
description = "Void";
April 2nd, 2013, 09:39 AM
Maybe I'm missing something but I don't understand the question. I would suggest you provide a lot more detail as what exactly you're trying to do.
Are you trying to implement a PictureBox to display various images or are you trying to develop a spash screen as an intro to your game.
To reiterate, you have to provide a lot more info in order for everyone to understand your issue.
April 5th, 2013, 11:14 PM
Yeah sorry, I'm trying to display multiple images that correspond with a list. I got it to work eventually but the image quality was so low. I was told to possibly use Stream and Assembly?
Originally Posted by BobS0327
How do I make sure the quality of the image isn't changed? It was being converted to a bitmap.
April 10th, 2013, 03:23 AM
>>How do I make sure the quality of the image isn't changed? It was being converted to a bitmap
Conversion to a bitmap does not mean a loss in quality.
Maintaining quality depends on how you render the image and the properties of the image and display.
As you provide no details on any of this it is impossible to help you.
If I had to guess I would say you are changing the image size, probably to a non integer multiple of the original.
The essence of Christianity is told us in the Garden of Eden history. The fruit that was forbidden was on the Tree of Knowledge. The subtext is, All the suffering you have is because you wanted to find out what was going on. You could be in the Garden of Eden if you had just kept your f***ing mouth shut and hadn't asked any questions.