|
-
Aug 19th, 2002, 06:32 PM
#1
Thread Starter
Member
How do i load an image?
I mean an image i got in the solution
-
Aug 19th, 2002, 07:14 PM
#2
Re: How do i load an image?
Originally posted by Aerials
I mean an image i got in the solution
in the solution? what do you mean? you mean you have the image in a resource file?
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Aug 19th, 2002, 07:36 PM
#3
Thread Starter
Member
Re: Re: How do i load an image?
Originally posted by MrPolite
in the solution? what do you mean? you mean you have the image in a resource file?
i added it via add-existing item
-
Aug 19th, 2002, 08:37 PM
#4
I believe you still have to use the path to load it. Adding a misc file to the solution in .NET is kind of like adding a related document in VB6. It just associates it with the solution don't doesn't really provide anymore functionality.
-
Aug 21st, 2002, 03:29 PM
#5
Thread Starter
Member
Originally posted by Edneeis
I believe you still have to use the path to load it. Adding a misc file to the solution in .NET is kind of like adding a related document in VB6. It just associates it with the solution don't doesn't really provide anymore functionality.
by just using the path it wont load on other comps and it crashes the program 
i tried
-
Aug 21st, 2002, 03:47 PM
#6
Originally posted by Aerials
by just using the path it wont load on other comps and it crashes the program 
i tried
crashes?! hmm!!!
post your code
this works for me:
PictureBox1.Image = New Bitmap("C:\pic.bmp")
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Aug 21st, 2002, 03:48 PM
#7
also this:
PictureBox1.Image = Image.FromFile("c:\test.bmp")
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
-
Aug 21st, 2002, 03:56 PM
#8
Thread Starter
Member
-
Aug 21st, 2002, 07:03 PM
#9
umm you wanted to load the image in the app's folder:
VB Code:
Dim path As String = Application.StartupPath
path = System.IO.Path.Combine(path, "ImageName.bmp")
PictureBox1.Image = New Bitmap(path)
rate my posts if they help ya!
Extract thumbnail without reading the whole image file: (C# - VB)
Apply texture to bitmaps: (C# - VB)
Extended console library: (VB)
Save JPEG with a certain quality (image compression): (C# - VB )
VB.NET to C# conversion tips!!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|