Question about gflResizeCanvas / VB sample with Delphi
Posted: Tue Jul 18, 2006 9:19 pm
Hi experts,
as i have resize speed problems with the Delphi's TImage, i tried to test with the gflResizeCanvas as used in the Visual Basic sample "Form 10".
First i needed to adapt the VB code (i can read it only, because i cannot make it run with VB5) to Delphi; centered along the VB functions (plus helpers)
extGetGflBitmapFromPtr and extShowBitmapOnDc
for to test if i can display my (good) gfl_bmp (PGFL_BITMAP) via those functions (based on a GFL_BITMAP resp. TGFL_BITMAP object) on an Delphi TImage.
I adapted those functions so far, but the result image resp. device context ... is simply white.
Is there anybody who can help to track this down resp. has a working adaption of "extShowBitmapOnDc" resp. gflResizeCanvas for Delphi?
More general, is this approach (by going the fast DIB-way [extShowBitmapOnDc uses StretchDIBits)) the recommed way to react on resize actions on the user interface? (does xnview itself do so?)
Many thanks and best regards,
klaus2
as i have resize speed problems with the Delphi's TImage, i tried to test with the gflResizeCanvas as used in the Visual Basic sample "Form 10".
First i needed to adapt the VB code (i can read it only, because i cannot make it run with VB5) to Delphi; centered along the VB functions (plus helpers)
extGetGflBitmapFromPtr and extShowBitmapOnDc
for to test if i can display my (good) gfl_bmp (PGFL_BITMAP) via those functions (based on a GFL_BITMAP resp. TGFL_BITMAP object) on an Delphi TImage.
I adapted those functions so far, but the result image resp. device context ... is simply white.
Is there anybody who can help to track this down resp. has a working adaption of "extShowBitmapOnDc" resp. gflResizeCanvas for Delphi?
More general, is this approach (by going the fast DIB-way [extShowBitmapOnDc uses StretchDIBits)) the recommed way to react on resize actions on the user interface? (does xnview itself do so?)
Many thanks and best regards,
klaus2