LiveCode 第3天——从图片库取图片

本文详细介绍了手机图片选择器的使用方法,包括选择图片的来源(如相册、摄像头等),以及设置图片预览区域的基本尺寸。同时,提供了创建图片获取按钮的操作步骤,确保在移动设备上实现流畅的图片选择体验。

 安卓教程列表

原文 2011-7-19

 

on mouseUp
   set the lockloc of the templateimage to true
   set the width of the templateimage to "300"
   set the height of the templateimage to "400"
   set the left of the templateimage to "10"
   set the top of the templateimage to "10"
   mobilepickphoto "library"
end mouseUp

mobilePickPhoto有3个参数。参数1,source,指定范围:

library,库

album,当前的照片库

camera,打开摄像头拍照

rear camera,后置摄像头(仅ios)

front camera,前置摄像头(仅ios)

参数2,参数3,最大宽高。
 使用手机的图片选择器'image chooser'

 操作:

1 新建stack
2 宽度320,高度 460
3 创建按钮“获取图片”,不支持中文

4 移到底部给图片留出空间
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值