aamir55
September 7th, 2008, 10:50 AM
applying texture
i m trying to apply texture on the image
but problem is that texture is not being applied on the picture
i m loading pictures from the database
i have three forms
form1 for managing pictures in the database
form2 for displaying pictures in the picturebox
frmTexture for applying texture
i use texture form to apply the texture on the form,once the texture is applied over
the picture in the texture form then i press Ok button to apply this texture to back to the
form2 picture box but problem is that this texture is not applied to the picture
my code is for OK button as follow
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Form2.pb.Image = Me.picTextured.Image 'apply textured bitmap to form2 picture box
Form2.pb.Refresh() 'refresh the from2 picture box
Me.Close() 'close the texture form
End Sub
if i open picture from disk directly then texture is applied.
now i m worry how to handle this situation
same is the case for other dialogs like applying emboss effect on the picture.
i m sending this project along database files...i m using sql server 2000 for storing pictures into the database
can any body provide me help....thanks
i m trying to apply texture on the image
but problem is that texture is not being applied on the picture
i m loading pictures from the database
i have three forms
form1 for managing pictures in the database
form2 for displaying pictures in the picturebox
frmTexture for applying texture
i use texture form to apply the texture on the form,once the texture is applied over
the picture in the texture form then i press Ok button to apply this texture to back to the
form2 picture box but problem is that this texture is not applied to the picture
my code is for OK button as follow
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Form2.pb.Image = Me.picTextured.Image 'apply textured bitmap to form2 picture box
Form2.pb.Refresh() 'refresh the from2 picture box
Me.Close() 'close the texture form
End Sub
if i open picture from disk directly then texture is applied.
now i m worry how to handle this situation
same is the case for other dialogs like applying emboss effect on the picture.
i m sending this project along database files...i m using sql server 2000 for storing pictures into the database
can any body provide me help....thanks