Page 1 of 1

DrawImage() + #PB_Image_Raw

Posted: Sat May 15, 2010 7:58 am
by zxtunes.com

Code: Select all

  GrabImage(0, 11, xa1, ya1, w2, h2)

  If StartDrawing( WindowOutput(0) )
  
      DrawImage( ImageID(11), xa1*zoom,ya1*zoom, w2*zoom, h2*zoom, #PB_Image_Raw)
      
    StopDrawing()
  EndIf
VS

Code: Select all

  GrabImage(0, 11, xa1, ya1, w2, h2)
  ResizeImage(11, w2*zoom, h2*zoom, #PB_Image_Raw)
  
  If StartDrawing( WindowOutput(0) )
  
      DrawImage( ImageID(11), xa1*zoom,ya1*zoom)
      
    StopDrawing()
  EndIf
Shame that we have to go an extra ResizeImage due to the fact that changes the size DrawImaga always with smooth (interpolated). :?