Advertisement
jsbsan

FileChoose

Jun 2nd, 2013
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GAMBAS 0.51 KB | None | 0 0
  1. Public Sub FileChooser1_Icon(ruta As String)
  2.  
  3.   Dim miniatura As New Picture
  4.   Dim ima As New Image
  5.   Dim terminacion As String
  6.  
  7.   If CheckBoxPrevisualizacion.Value = True Then
  8.    
  9.     terminacion = Upper$(ModuleUtilidadesDisco.extraeExtension(ruta))
  10.     If terminacion = Upper$("PNG") Or terminacion = Upper$("JPG") Then
  11.      
  12.       Exec ["convert", ruta, "-scale", "40x", "/tmp/miniatura.png"] Wait
  13.      
  14.       fileChooser1.icon = Picture.Load("/tmp/miniatura.png")
  15.     Endif
  16.   Endif
  17.  
  18. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement