楕円形のイメージをユーザーがカットする方法があるかどうかはわかりませんが、宿泊施設に応じてCSSを変更できることを伝えてください。ゲーラリーから
のget絵
$scope.getPicture = function() {
var options = {
quality: 50,
targetWidth: 512,
targetHeight: 512,
destinationType: Camera.DestinationType.DATA_URL,
sourceType: Camera.PictureSourceType.PHOTOLIBRARY,
encodingType: Camera.EncodingType.JPEG,
correctOrientation: true,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: false
};
$cordovaCamera.getPicture(options).then(function(imageData) {
$scope.photo = "data:image/jpeg;base64," + imageData;
}, function(err) {
// An error occured. Show a message to the user
});
テイクカメラ装置からの映像画像
<div style="background: url({{photo}}); background-size: cover;background-position: center;height:210px;">
小さな円形画像のこの例のフォームから
$scope.takePicture = function() {
var options = {
quality: 50,
targetWidth: 512,
targetHeight: 512,
destinationType: Camera.DestinationType.DATA_URL,
sourceType: Camera.PictureSourceType.CAMERA,
encodingType: Camera.EncodingType.JPEG,
correctOrientation: true,
popoverOptions: CameraPopoverOptions,
saveToPhotoAlbum: false,
};
$cordovaCamera.getPicture(options).then(function(imageData) {
$scope.photo = "data:image/jpeg;base64," + imageData;
}, function(err) {
// An error occured. Show a message to the user
});
}
例が、あなたのことができ必要に応じてこれを変更してください。
画像は楕円形である必要がありますか?または、ギャラリーから画像を取り込んだり、選択したり、CSSの楕円形を残すことができますか? – sioesi
申し訳ありませんが@ sioesi私はテキストを完了していない...気づいていなかった.. –