animdecod.h

Clase wxAnimationDecoder

wxAnimationDecoder es utilizado por wxAnimation para cargar fotogramas y otra información para la animación desde el archivo de imagen de animación.

Jerarquía:

Jerarquía de la clase wxAnimationDecoder

Funciones miembro

wxAnimationDecoder()

wxAnimationDecoder::wxAnimationDecoder()

Constructor.

CanRead()

bool wxAnimationDecoder::CanRead(wxInputStream & stream) const

Devuelve true si este decodificador admite la carga desde el flujo dado.

Clone()

virtual wxAnimationDecoder* wxAnimationDecoder::Clone() const

Crea una copia de este decodificador.

Implementado en wxGIFDecoder y wxANIDecoder.

ConvertToImage()

virtual bool wxAnimationDecoder::ConvertToImage( unsigned int frame, wxImage * image ) const

Convierte un fotograma a wxImage.

Implementado en wxGIFDecoder y wxANIDecoder.

DoCanRead()

virtual bool wxAnimationDecoder::DoCanRead(wxInputStream & stream) const

Comprueba la firma de los datos en el flujo dado y devuelve true si parece ser un formato de animación válido reconocido por el decodificador de animación; esta función debería modificar la posición actual del flujo sin ocuparse de restaurarla ya que CanRead() lo hará.

Implementado en wxGIFDecoder y wxANIDecoder.

GetAnimationSize()

wxSize wxAnimationDecoder::GetAnimationSize() const

Obtiene el tamaño de la animación.

GetBackgroundColour()

wxColour wxAnimationDecoder::GetBackgroundColour() const

Obtiene el color del fondo de la animación.

GetDelay()

virtual long wxAnimationDecoder::GetDelay(unsigned int frame) const

Devuelve el número de milisegundos que debe mostrarse este fotograma.

Si se devuelve -1 entonces el fotograma debe mostrarse para siempre.

Implementado en wxGIFDecoder y wxANIDecoder.

GetDisposalMethod()

virtual wxAnimationDisposal wxAnimationDecoder::GetDisposalMethod(unsigned int frame) const

¿Qué hay que hacer después de visualizar este fotograma?

Implementado en wxGIFDecoder y wxANIDecoder.

GetFrameCount()

unsigned int wxAnimationDecoder::GetFrameCount() const

Devuelve el número de fotogramas.

GetFramePosition()

virtual wxPoint wxAnimationDecoder::GetFramePosition(unsigned int frame) const

Devuelve la posición del fotograma.

Implementado en wxGIFDecoder y wxANIDecoder.

GetFrameSize()

virtual wxSize wxAnimationDecoder::GetFrameSize(unsigned int frame) const

Obtiene el tamaño de un fotograma.

Implementado en wxGIFDecoder y wxANIDecoder.

GetTransparentColour()

virtual wxColour wxAnimationDecoder::GetTransparentColour(unsigned int frame) const

El color transparente para este marco, si existe, o wxNullColour.

Implementado en wxGIFDecoder y wxANIDecoder.

GetType()

virtual wxAnimationType wxAnimationDecoder::GetType() const

Devuelve el tipo de animación que implementa este decodificador.

Implementado en wxGIFDecoder y wxANIDecoder.

Load()

virtual bool wxAnimationDecoder::Load(wxInputStream & stream)

Carga los fotogramas de la imagen de animación desde el flujo dado.

Implementado en wxGIFDecoder y wxANIDecoder.