PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 25 → Tamanho de uma imagem em pixels
Tamanho de uma imagem em pixels
Started by Boller, Mar., 28 2022 6:26 PM - 1 reply
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on March, 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/
Registered member
3,655 messages
Popularité : +175 (223 votes)
Posted on March, 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/