OK first of all dont say me "you can use framework" bla bla bla..i must do this this way..
i have the following code:
VB Code:
final = pictureBox2 dim original as Image = Image.FromFile("C:\Documents and Settings\_RIP_DREAMS\Desktop\D_r_e_a_m_s_i_g_n[1].jpg") dim g as Graphics = Graphics.FromImage(original) dim originalHdc as IntPtr = g.GetHdc() g = final.CreateGraphics() IntPtr finalHdc = g.GetHdc() Form1.SetStretchBltMode(finalHdc, 4) Form1.StretchBlt(finalHdc, 0, 0, 100, 100, originalHdc, 0, 0, original.Width, original.Height, 13369376)
the problem is that the ORIGINAL image gets just black..anyone knows why? if instead of directly loading the file into memory i put it into a picturebox it works..whats the damn difference?![]()




Reply With Quote