void __fastcall TForm1::FormCreate(TObject *Sender)
{
GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL);
angle=0;
Gdiplus::Graphics graphics(Image1->Canvas->Handle);
graphics.SetSmoothingMode(Gdiplus::SmoothingModeAntiAlias);
Gdiplus::Image image(L"4.gif");
Timer1->Enabled=true;
}
//--------------------------------------------------------------------
void __fastcall TForm1::Timer1Timer(TObject *Sender)
{
graphics.RotateTransform(angle);
graphics.DrawImage(&image,0,0);
}
//--------------------------------------------------------------------
Ругается что graphics в таймере не определен, чего туда написать чтоб заработала ?
В криэйте формы все нормально фотку открывает.