Árvore de páginas

Você está vendo a versão antiga da página. Ver a versão atual.

Comparar com o atual Ver Histórico da Página

Versão 1 Próxima »

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

  • Sem rótulos