Image help..

TriGgeRLoCk
02-08-2004, 11:35 PM
I have a slideshow program that I made, and when it loads pictures, they appear much more grainy then if I open the image with another program, like microsoft image viewer.

Is there anyway that I can make the image clearer?

Example:
Grainy Image:
http://www.pointblankweb.com/upload/files/grainy_image.JPG

Good Image:
http://www.pointblankweb.com/upload/files/good_image.JPG

Any help would be great...thanks!!! :)

Machaira
02-27-2004, 08:05 AM
Maybe if you told us how you're showing the images or showed us code?

TriGgeRLoCk
03-03-2004, 06:09 PM
Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs)

Dim g As Graphics = e.Graphics
Dim bm As Bitmap = CType(Image.FromFile("C:\ja15^001.jpg"), Bitmap)
g.SmoothingMode = Drawing.Drawing2D.SmoothingMode.AntiAlias
g.DrawImage(bm, 10, 10, Me.Width - 10, Me.Height - 10)
End Sub


That's how I am loading it :)

Machaira
03-26-2004, 09:00 AM
Why not just drop the image into a PictureBox? Why are you painting it?

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum