Árvore de páginas

Versões comparadas

Chave

  • Esta linha foi adicionada.
  • Esta linha foi removida.
  • A formatação mudou.
Comentário: Migration of unmigrated content due to installation of a new plugin
Composition Setup
import.css=/download/attachments/327912/newLayout.css
Portuguese

Pagetitle
RetImgType
RetImgType

Função: RetImgType

Retorna o tipo da imagem informada por parâmetro. Para isso, essa função abre o arquivo e verifica se o formato é BMP - Bitmap ou JPG - Joint Photographic Group.

RetImgType ( < cImgPath> ) --> nRet

NomeTipoDescriçãoObrigatórioReferência
cImgPathCaracterIndica o diretório da imagem para identificar o tipo. X
    nRet(numerico)
  • Retorna o tipo da imagem. Sendo: 1= Bitmap e 2=JPG.
Local nImgType := RetImgType( cFile )  if nImgType == TYPE_BMP   conout('Arquivo BMP') elseif nImgType == TYPE_JPG   conout('Arquivo JPG') endIf
Microsiga Protheus 8.11 , Protheus 10 , TOTVS Application Server 10