473,516 Members | 3,456 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to create embedded graphics and audios?

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

Kind regards,
Nov 16 '05 #1
4 1695
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


"Arda Coskun" <a@a.com> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
Hi,
How to create embedded graphics and audios? Any article would be helpful.

Kind regards,

Nov 16 '05 #2
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.

"Bob Powell [MVP]" <bob@_spamkiller_bobpowell.net> wrote in message
news:#8**************@tk2msftngp13.phx.gbl...
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


"Arda Coskun" <a@a.com> wrote in message
news:Oq**************@TK2MSFTNGP11.phx.gbl...
Hi,
How to create embedded graphics and audios? Any article would be helpful.
Kind regards,


Nov 16 '05 #3
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."

Nov 16 '05 #4
Thanks Kevin, I also sent the question to smartphone.developer. The
description of my problem is clearer there.

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:iQ**************@cpmsftngxa10.phx.gbl...
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."

Nov 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
1619
by: Sizer | last post by:
We make embedded devices that are basically wimpy linux boxes with small custom display/touchscreen heads on them. They're not running X or any other windowing system. All development is done with C++ and PEG (Portable Embedded GUI) driving the display. PEG lets you install your own hardware driver to talk any custom hardware, which is what...
2
2330
by: Steve | last post by:
Can anyone please advise me on the following : I am developing an access 2002 app that shows a customers picture, the picture is stored on the hard drive not in a table. I use the following code to change the image obj.picture=filename. I have no problem if the machine on which I run the app has Microsoft Photo Editor loaded, but as I am...
2
2625
by: Chris Belcher | last post by:
First some background... The database tracks Action Items assigned to a group of 20 or so managers. Once the assignment is created it is then emailed to each of the managers that are included in the scope of the assignment. Among the functions that it provides is the ability to embed the source documents in the database using OLE. The user...
0
2276
by: Balu Ramachandran | last post by:
How can I create the Thumbnail view from the form? In the following approach I tried but Iams facing some limitations to get the thumbnail image of the form alone. Plaese any one can help in this regard. It is a serious problem for me. Thanks! Approach - I - Bitmap (screen capture method) =============================================...
3
1620
by: Joe Thompson | last post by:
Hi, I tried posting this in a different thread a week ago but only received one response so I will try again here. I am writing the code for a program that will run on an embedded PXA255 running Windows CE 4.2. At first I was planning on using C# with the compact frame work but the more I learn about the project, the less comfortable I...
3
417
by: Richard Skopal | last post by:
In .NET Windows forms I can create a metafile using this code: Graphics grph = aControl.CreateGraphics(); IntPtr ipHDC = grph.GetHdc(); Metafile mf = new Metafile(aImgFilePath, ipHDC, EmfType.EmfOnly); grph.ReleaseHdc(ipHDC); grph.Dispose(); grph = Graphics.FromImage(mf); grph.DrawRectangle(aPen, 10, 10, 100, 120); grph.Dispose();
15
1557
by: matko | last post by:
Hi! In one of the two examples for the PaintEventArgs.Graphics-property (in the VS 2005 documentation), the Graphics-object is "saved" to a local variable, before being used. In the other example, no such saving is done. Why was the Graphics-object saved in one of the examples? Is that really necessary? Example #1:
0
5104
by: wulongtea | last post by:
I am trying generate an HTML email message with C# Visual Studio 2003 that has a graphics file embedded in the message. (I know i should be using 2005 and the new classes there, but I cannot upgrade yet due to the policy at my company) my function seems pretty simple. but what i get is an HTML email that has an attached file, whic his the...
11
5343
by: Mark B | last post by:
I want to display a pre-designed graphical 'performance badge' on certain webpages (round, about 2cm diameter) next to a salesperson's details. I have a function, fGetPerformanceGrade(SalesPersonID as Long) as String to retrieve that salesperson's grade (e.g. A+, A, A-, B+, B... D). Also one other function, fGetMonthlySales(SalesPersonID as...
0
7273
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7182
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
5712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5106
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3265
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3252
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
823
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.