USING THE CAMERA FOR TAKING PICTURESThe T-Mobile G1 was released in 20 dịch - USING THE CAMERA FOR TAKING PICTURESThe T-Mobile G1 was released in 20 Việt làm thế nào để nói

USING THE CAMERA FOR TAKING PICTURE

USING THE CAMERA FOR TAKING PICTURES
The T-Mobile G1 was released in 2008 with a 3.2-megapixel camera. Today, most devices feature at least a 5-megapixel camera, with some models sporting 8.1-megapixel cameras. The ubiquity of smartphones featuring increasingly high-quality cameras has made camera applications popular additions to Google Play.
The following sections demonstrate the mechanisms you can use to control the camera and take photos within your applications.
Using Intents to Take Pictures
The easiest way to take a picture from within your application is to fire an Intent using the MediaStore.ACTION_IMAGE_CAPTURE action:
startActivityForResult(
new Intent(MediaStore.ACTION_IMAGE_CAPTURE), TAKE_PICTURE);
This launches a Camera application to take the photo, providing your users with the full suite of camera functionality without you having to rewrite the native Camera application.
Once users are satisfied with the image, the result is returned to your application within the Intent received by the onActivityResult handler.
By default, the picture taken will be returned as a thumbnail, available as a raw bitmap within the data extra within the returned Intent.
To obtain a full image, you must specify a target file in which to store it, encoded as a URI passed in using the MediaStore.EXTRA_0UTPUT extra in the launch Intent, as shown in Listing 15-23.
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
USING THE CAMERA FOR TAKING PICTURESThe T-Mobile G1 was released in 2008 with a 3.2-megapixel camera. Today, most devices feature at least a 5-megapixel camera, with some models sporting 8.1-megapixel cameras. The ubiquity of smartphones featuring increasingly high-quality cameras has made camera applications popular additions to Google Play.The following sections demonstrate the mechanisms you can use to control the camera and take photos within your applications.Using Intents to Take PicturesThe easiest way to take a picture from within your application is to fire an Intent using the MediaStore.ACTION_IMAGE_CAPTURE action:startActivityForResult(new Intent(MediaStore.ACTION_IMAGE_CAPTURE), TAKE_PICTURE);This launches a Camera application to take the photo, providing your users with the full suite of camera functionality without you having to rewrite the native Camera application.Once users are satisfied with the image, the result is returned to your application within the Intent received by the onActivityResult handler.By default, the picture taken will be returned as a thumbnail, available as a raw bitmap within the data extra within the returned Intent.To obtain a full image, you must specify a target file in which to store it, encoded as a URI passed in using the MediaStore.EXTRA_0UTPUT extra in the launch Intent, as shown in Listing 15-23.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
SỬ DỤNG CHO CAMERA ÐIỂM HÌNH ẢNH
G1 T-Mobile đã được phát hành vào năm 2008 với một camera 3.2-megapixel. Ngày nay, hầu hết các thiết bị tính năng ít nhất một camera 5-megapixel, với một số mô hình thể thao camera 8.1-megapixel. Các mặt khắp nơi của điện thoại thông minh có tính năng ngày càng máy ảnh chất lượng cao đã làm cho các ứng dụng máy ảnh bổ sung phổ biến cho Google Play.
Các phần sau đây chứng tỏ các cơ chế, bạn có thể sử dụng để điều khiển máy ảnh và chụp ảnh trong các ứng dụng của bạn.
Sử dụng Intents để Take Hình
Cách dễ nhất để có một bức tranh từ bên trong ứng dụng của bạn là để bắn một Intent sử dụng hành MediaStore.ACTION_IMAGE_CAPTURE:
startActivityForResult (
Ý định mới (MediaStore.ACTION_IMAGE_CAPTURE), TAKE_PICTURE);
này sẽ khởi chạy một ứng dụng máy ảnh để chụp ảnh, cung cấp người dùng với các bộ đầy đủ của máy ảnh chức năng mà không cần phải viết lại các ứng dụng máy ảnh bản địa.
một khi người dùng hài lòng với hình ảnh, kết quả được trả về cho ứng dụng của bạn trong các ý định nhận được xử lý onActivityResult.
theo mặc định, các bức ảnh chụp sẽ được trả lại như một hình ảnh thu nhỏ, có sẵn như là một bitmap liệu trong thêm dữ liệu trong Ý định trở lại.
để có được một hình ảnh đầy đủ, bạn phải chỉ định một tập tin mục tiêu, trong đó để lưu trữ nó, được mã hóa như là một URI thông qua việc sử dụng các MediaStore.EXTRA_0UTPUT phụ trong Ý định ra mắt, như thể hiện trong Bảng liệt 15-23.
đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2024 I Love Translation. All reserved.

E-mail: