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
Nome | Tipo | Descrição | Obrigatório | Referência |
cImgPath | Caracter | Indica 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
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas