GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV (versões anteriores)
→
[WM17] Andriod Resize Image ?
[WM17] Andriod Resize Image ?
Iniciado por Danny Lauwers, abr., 11 2013 12:37 PM - 1 resposta
Conecte-se…
Danny Lauwers
#1
Publicado em abril, 11 2013 - 12:37 PM
Hi,
What I want to accomplish:
1. Take a picture with the android camera
2. Resize it without distorting the image (Homothetic)
3. Upload via a Webservice to my ERP system
Where is the problem, in 2 resizing it !!
When the image of the camera is taken with VideoStartApp(viPictureCapture) the picture is stored in a JPG file. I assign the Image control to the path to load the image into the control and show it on the Andriod Phone. Looks good, works great !
Then I need to resize the image en compress it.
I tried
dResize(IMG_Foto,640,480)
bufImageBuffer = dSaveImageJPG(IMG_Temp,inMemory,50)
sBase64String = Crypt(bufImageBuffer,"",cryptNone,True)
Once I have a Base64String I can upload it without problems.
The result I get is a picture with black borders around it
[attachment 302 test.jpg]
If you save the image of a Image control, it seems to save the total control and not only the image itself.
I tried the same with Windev 17, and there I have used the Image variable and that works OK.
I also tried to use a second Image control of the same size what I want to resize, but this has a double black border around it ??
Anybody an idea on how to correct size an image taken from the android camera ?
Thanks
Danny
Denunciar
0
0
Arron lee
#2
Membro registado
6 mensagems
Publicado em fevereiro, 27 2014 - 4:28 AM
I have only tried to resize images using the 3rd party image resizers before:
http://www.yiigo.com/guides/vbnet/how-to-resize-image.shtml
But I have no experience on how to correct size an image taken from the android camera.
Denunciar
0
0
→ Voltar para WINDEV (versões anteriores)
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto