PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV 25
→
WM - Como fazer uma assinatura com Windev Mobile no Android/iOS e salvando a imagem em disco podendo enviar a mesma via webservice?
WM - Como fazer uma assinatura com Windev Mobile no Android/iOS e salvando a imagem em disco podendo enviar a mesma via webservice?
Started by BOLLER ADRIANO, Jul., 14 2016 5:13 AM - 2 replies
Connect yourself…
BOLLER ADRIANO
#1
Registered member
3,651 messages
Popularité : +175 (223 votes)
Posted on July, 14 2016 - 5:13 AM
Prezados,
Hoje vamos ver como fazer uma assinatura com Windev Mobile no Android/iOS e salvando a imagem em disco podendo enviar a mesma via webservice. Para isso seguiremos o seguinte código:
Tela:
Codigo da Janela:
Procedure
Assinatura
(
)
gn
PositionX
,
gn
PositionY
sont des entiers
Init Embed
dDébutDessin
(
Img_signature
)
Controle imagem CODE:
//Pegar posição
gn
PositionX
=
GestePosX
(
1
)
gn
PositionY
=
GestePosY
(
1
)
//Zerar
gn
PositionX
=
0
gn
PositionY
=
0
//Registrar movimentos e desenhar linha
n
PositionFinX
,
n
PositionFinY sont des entiers
n
PositionFinX
=
GestePosX
(
1
)
n
PositionFinY
=
GestePosY
(
1
)
SI
gn
PositionX
<
>
0
_ET_
gn
PositionY
<
>
0
dLine
(
gn
PositionX
,
gn
PositionY
,
n
PositionFinX
,
n
PositionFinY
,
Noir
)
gn
PositionX
=
n
PositionFinX
gn
PositionY
=
n
PositionFinY
FIN
Código do Botão Salvar
dSaveImageJPEG
(
Img_signature
,
"Assinatura.Jpg"
,
100
)
IF
fFileExist
(
"Assinatura.Jpg"
) =
True
THEN
Info
(
"Arquivo salvo com sucesso!"
)
//Estando salvo agora é só transmitir usando um webservice ou ftp
END
Resultado:
Vídeo sobre a assinatura feito no dia 13/07/2016
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
BOLLER ADRIANO
#2
Registered member
3,651 messages
Popularité : +175 (223 votes)
Posted on July, 20 2016 - 1:01 AM
Melhorando o código:
Muito obrigado ao Jacques Bica - RS, pela correção e ajustes no código.
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
Boller
#3
Registered member
3,651 messages
Popularité : +175 (223 votes)
Posted on February, 17 2022 - 11:45 PM
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 99949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Report
0
0
→ Go back to WINDEV 25
WINDEV 25
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text