PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WINDEV 25 → Tamanho de uma imagem em pixels
Tamanho de uma imagem em pixels
Iniciado por Boller, mar., 28 2022 6:26 PM - 1 resposta
Membro registado
3.651 mensagems
Popularité : +175 (223 votes)
Publicado em março, 28 2022 - 6:26 PM
imgx is Image=dLoadImage(IMG_NoName1)

IF imgx..BitPerPixel>0 THEN

Info("tem imagem")

ELSE

Info("vazio")

END

Tamanho os Int = imgx..BitPerPixel

Info(tamanho)


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Membro registado
3.651 mensagems
Popularité : +175 (223 votes)
Publicado em março, 31 2022 - 6:54 PM
//Quantos Kb?
sPath is string = "caminho da imagem"
n_tamanho_arquivo is int=fSize(sPath)
info(LengthToString(n_tamanho_arquivo,sizeKB))

prontinho, fico sabendo o tamanho da imagem em kbytes

By Francis e Jose Willem


--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/