How to create embedded graphics and audios?

  • Thread starter Thread starter Arda Coskun
  • Start date Start date
A

Arda Coskun

Hi,
How to create embedded graphics and audios? Any article would be helpful.

Kind regards,
 
Assuming that you're using Visual Studio you can embed any information into
the solution by adding it to the solution tree and marking it as "Embedded
resource" To retreive the resource you can use
Assembly.GetManifestResourceStream to retreive the information as a stream
and load whatever it is you've embedded.



--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml
 
Thank you Bob, it worked.

I have another problem, I have created an icon for my application in VS.NET
for Smartphone. Then, I deploy it to /storage/Windows/start menu/myGame.
When I explore myGame folder, the icon there is 16x16, but I have created
32x32 icon and it is for the home screen. I set the application icon from
VS.NET. At home screen of smartphone icons at the top are 32x32 as you know.
Why when I explore pacsim folder my icon doesn't resize it to 16x16 and
shows 16x16 part of my icon?

Kind Regards,

Arda.
 
Hi Arda,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that that when you deploy an application to
the smartphone device, the application icon was resized to 16*16 instead of
32*32. If there is any misunderstanding, please feel free to let me know.

I would like to know how did you find the icon was changed to 16*16. As far
as I know, we cannot check for size on the device. Did you copied it back
to PC and checked it? Also, have you checked the icon for the application
on the home screen? Is it 32*32 or 16*16 as it's very easy for us to
distinguish with our eyes.

Besides, you can also post this issue in
microsoft.public.smartphone.developer group. I think there will be more
people helpful there.

If anything is unclear, please feel free to reply to the post.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."
 
Thanks Kevin, I also sent the question to smartphone.developer. The
description of my problem is clearer there.
 
Back
Top