NodZen Posted June 14, 2012 Posted June 14, 2012 Hola amigos , quiero saber si se puede poner un gif en un server. Intente pasar un gif a formato .png pero no funciona. Es posible poner un gif? algo asi como un showImage. Gracias
Alexs Posted June 14, 2012 Posted June 14, 2012 guiCreateStaticImage pero no se si acepta .GIF en sus extensiones
NodZen Posted June 14, 2012 Author Posted June 14, 2012 guiCreateStaticImage pero no se si acepta .GIF en sus extensiones Ya intentè eso , pero no funciona.
Alexs Posted June 14, 2012 Posted June 14, 2012 Que no funciona?? Poste tu script o simplemente, no se puede con archivos .Gif
NodZen Posted June 14, 2012 Author Posted June 14, 2012 Que no funciona?? Poste tu script o simplemente, no se puede con archivos .Gif El script uso de la wiki.
BorderLine Posted June 15, 2012 Posted June 15, 2012 debes desintegrar la imagen gif con cada una de sus imagenes. Y debes hacer el codigo para que muestre una imagen tras de otra fijate el video en el logo biohazard suerte
iFoReX Posted June 15, 2012 Posted June 15, 2012 #OT: Buen Logo yakusa , hay algun programa para descomprimir gifs en imagenes ?
BorderLine Posted June 15, 2012 Posted June 15, 2012 http://www.puntogeek.com/2009/03/06/com ... f-animado/ frame extractor kreo ke se llama
Castillo Posted June 15, 2012 Posted June 15, 2012 Yo habia creado una funcion para simular un .gif, aca les dejo el codigo: local gifs = { } local gifTimers = { } function dxDrawGifImage ( x, y, w, h, name, cStart, cEnd, cCurrent, iType, timerSpeed ) local i = ( #gifs + 1 ) gifs [ i ] = { x, y, w, h, name, cStart, cEnd, cCurrent, iType } gifTimers [ i ] = setTimer ( function ( ) gifs [ i ] [ 8 ] = ( gifs [ i ] [ 8 ] + 1 ) if ( gifs [ i ][ 8 ] >= gifs [ i ] [ 7 ] ) then gifs [ i ] [ 8 ] = gifs [ i ] [ 6 ] end end ,timerSpeed or 150, 0 ) return i end function dxGifDestroy ( index ) gifs [ index ] = nil end addEventHandler ( "onClientRender", root, function ( ) for index, gif in ipairs ( gifs ) do dxDrawImage ( gif [ 1 ], gif [ 2 ], gif [ 3 ], gif [ 4 ], "images/".. gif [ 5 ] .."".. gif [ 8 ] ..".".. gif [ 9 ] ) end end ) dxDrawGifImage ( 769, 175, 193, 145, "flag_arg", 0, 3, 0, "png", 150 ) dxDrawGifImage ( 769, 305, 193, 145, "flag_usa", 0, 3, 0, "png", 150 ) Lo hice hace meses y asi rapido, asi que puede que no funcione bien .
Castillo Posted June 18, 2012 Posted June 18, 2012 Como estaba aburrido, me decidi a crear de nuevo mi funcion: dxDrawGifImage y la perfeccioné bastante, la pueden encontrar en el siguiente link: https://wiki.multitheftauto.com/wiki/DxDrawGifImage
iFoReX Posted June 18, 2012 Posted June 18, 2012 Solid pero esa funcion sirve digamos poner una imagen .gif, o es para poner imagenes .png ?
Castillo Posted June 18, 2012 Posted June 18, 2012 Los .gif no estan soportados en MTA, son para sprites, osea varias imagenes.
iFoReX Posted June 18, 2012 Posted June 18, 2012 aah Ok, otra cosa, cuando pongo una imagen .png en MTA con fondo blanco , ( para que este transparente el fondo ), el fondo no es transparente es blanco, como podria solucionar esto ?
Castillo Posted June 18, 2012 Posted June 18, 2012 Conseguite el PaintNet y edita la imagen, eso es lo que yo hago.
Recommended Posts