Ver Mensaje Individual
  #1  
Antiguo 29-09-2016
Ramsay Ramsay is offline
Miembro
NULL
 
Registrado: ene 2016
Posts: 104
Reputación: 9
Ramsay Va por buen camino
Invalid image size en ImageList

El codigo :

Código Delphi [-]
  png := TPngImage.Create();
  Bitmap := TBitmap.Create();

  png.LoadFromStream(stream);

  Bitmap.Height := png.Height;
  Bitmap.Width := png.Width;

  Bitmap.Assign(png);

  //R.Left := 0;
  //R.Top := 0;
  //R.Right := 16;
  //R.Bottom := 16;
  //Bitmap.Canvas.StretchDraw(R, Bitmap);

  imagelist1.Add(Bitmap, nil);

  png.Free();
  Bitmap.Free();

El problema es que cada vez que agrego el bmp al imagelist recibo Invalid Image Size , intente con la respuesta de este post : https://www.clubdelphi.com/foros/showthread.php?t=78278, pero siempre es el mismo error , el stream carga bien , lo probe en un timage normal y funciona , no se que mas tengo que hacer , ¿ como soluciono esto ?
Responder Con Cita