Click to See Complete Forum and Search --> : apply texture


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

dglienna
September 7th, 2008, 11:38 AM
I'd make a new copy of the db image, and apply the texture and show that instead.

aamir55
September 7th, 2008, 10:47 PM
i can't what u have asked me
can u expalin me
how can i solve this problem

dglienna
September 8th, 2008, 12:49 AM
Like this:

dim im as image = new Form2.pb.Image

then process IM instead of the original image

aamir55
September 8th, 2008, 10:46 PM
hello where i have to write this line??

dim im as image=new Form2.pb.Image


i don't know how to do it
whether i have to write in ok button event or when i load texture dialog.
kindly explain me

aamir55
September 16th, 2008, 11:10 PM
hello
give me reply why texture is not applied
i m still waiting
first u reply me and then u do not relpy...why??
thanks