Sets the Surface to be used for live preview. Either a surface or surf dịch - Sets the Surface to be used for live preview. Either a surface or surf Việt làm thế nào để nói

Sets the Surface to be used for liv

Sets the Surface to be used for live preview. Either a surface or surface texture is necessary for preview, and preview is necessary to take pictures. The same surface can be re-set without harm. Setting a preview surface will un-set any preview surface texture that was set via setPreviewTexture(SurfaceTexture).

The SurfaceHolder must already contain a surface when this method is called. If you are using SurfaceView, you will need to register a SurfaceHolder.Callback with addCallback(SurfaceHolder.Callback) and wait for surfaceCreated(SurfaceHolder) before calling setPreviewDisplay() or starting preview.

This method must be called before startPreview(). The one exception is that if the preview surface is not set (or set to null) before startPreview() is called, then this method may be called once with a non-null parameter to set the preview surface. (This allows camera setup and surface creation to happen in parallel, saving time.) The preview surface may not otherwise change while preview is running.
Parameters
holder containing the Surface on which to place the preview, or null to remove the preview surface
Throws
IOException if the method fails (for example, if the surface is unavailable or unsuitable).
0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Sets the Surface to be used for live preview. Either a surface or surface texture is necessary for preview, and preview is necessary to take pictures. The same surface can be re-set without harm. Setting a preview surface will un-set any preview surface texture that was set via setPreviewTexture(SurfaceTexture).The SurfaceHolder must already contain a surface when this method is called. If you are using SurfaceView, you will need to register a SurfaceHolder.Callback with addCallback(SurfaceHolder.Callback) and wait for surfaceCreated(SurfaceHolder) before calling setPreviewDisplay() or starting preview.This method must be called before startPreview(). The one exception is that if the preview surface is not set (or set to null) before startPreview() is called, then this method may be called once with a non-null parameter to set the preview surface. (This allows camera setup and surface creation to happen in parallel, saving time.) The preview surface may not otherwise change while preview is running.Parametersholder containing the Surface on which to place the preview, or null to remove the preview surfaceThrowsIOException if the method fails (for example, if the surface is unavailable or unsuitable).
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Đặt Surface sẽ được sử dụng để trực tiếp xem trước. Hoặc là một bề mặt hay bề mặt kết cấu là cần thiết cho xem trước, và xem trước là cần thiết để chụp ảnh. Cùng một bề mặt có thể được tái thiết lập mà không gây hại. Thiết lập một mặt xem trước sẽ bỏ cài đặt bất kỳ kết cấu bề mặt xem trước đó đã được thiết lập thông qua setPreviewTexture (SurfaceTexture). Các SurfaceHolder đã phải có một bề mặt khi phương pháp này được gọi. Nếu bạn đang sử dụng SurfaceView, bạn sẽ cần phải đăng ký một SurfaceHolder.Callback với addCallback (SurfaceHolder.Callback) và chờ cho surfaceCreated (SurfaceHolder) trước khi gọi setPreviewDisplay () hoặc bắt đầu xem trước. Phương pháp này phải được gọi trước startPreview (). Có một ngoại lệ là nếu bề mặt xem trước không được thiết lập (hoặc thiết lập để null) trước khi startPreview () được gọi, sau đó phương pháp này có thể được gọi là một lần với một tham số không null để thiết lập các bề mặt xem trước. (Điều này cho phép thiết lập máy ảnh và tạo ra bề mặt để xảy ra song song, tiết kiệm thời gian.) Bề mặt xem trước có thể không nếu không thay đổi trong khi xem trước đang chạy. Các thông số chủ chứa các bề mặt trên đó để đặt các bản xem trước, hoặc null để loại bỏ các bề mặt preview Ném IOException nếu phương pháp này không thành công (ví dụ, nếu bề mặt là không có hoặc không phù hợp).







đ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 ©2025 I Love Translation. All reserved.

E-mail: