Share via


LampArrayBitmapEffect 클래스

정의

디바이스에서 선택한 램프 인덱스에 일련의 이미지를 렌더링합니다.

public ref class LampArrayBitmapEffect sealed : ILampArrayEffect
/// [Windows.Foundation.Metadata.Activatable(Windows.Devices.Lights.Effects.ILampArrayBitmapEffectFactory, 458752, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class LampArrayBitmapEffect final : ILampArrayEffect
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Devices.Lights.Effects.ILampArrayBitmapEffectFactory), 458752, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class LampArrayBitmapEffect : ILampArrayEffect
function LampArrayBitmapEffect(lampArray, lampIndexes)
Public NotInheritable Class LampArrayBitmapEffect
Implements ILampArrayEffect
상속
Object Platform::Object IInspectable LampArrayBitmapEffect
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10, version 1809 (10.0.17763.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v7.0에서 도입되었습니다.)

예제

LampArray 샘플

Windows.Devices.Lights 및 Windows.Devices.Lights.Effects API를 사용하여 주변 장치의 RGB 조명을 제어하는 방법을 보여 줍니다.

AutoRGB 샘플

데스크톱 화면에서 대표적인 단일 색을 추출하고 이를 사용하여 연결된 RGB 디바이스에서 LED 램프를 비추는 방법을 보여 줍니다.

설명

효과는 호출자가 BitmapRequested 이벤트를 구독하고 트리거될 때 UpdateBitmap 을 호출하여 일련의 이미지를 캡처합니다. 이를 통해 즉석에서 만든 이미지를 효과에 제공할 수 있습니다.

요청된 램프의 2D 컴퍼지션을 만들고 이미지를 스케일 업/다운하기 위해 최선의 노력을 기울입니다.

효과를 재생하려면 먼저 LampArrayEffectPlaylist 에 추가해야 합니다( 추가 참조).

LampArray가 LampArrayBitmapEffect에 바인딩되어 연결이 끊어지면 효과 진행률이 no-op으로 계속됩니다. 예외/오류가 throw/반환되지 않습니다.

생성자

LampArrayBitmapEffect(LampArray, Int32[])

효과의 새 instance 만들고 초기화합니다.

속성

Duration

효과 기간을 가져오거나 설정합니다.

StartDelay

효과를 시작하기 전에 지연할 기간을 가져오거나 설정합니다.

SuggestedBitmapSize

최소 크기 조정/왜곡을 초래하는 호출자가 선택한 램프 인덱스에 가장 적합한 이미지 크기를 가져옵니다.

UpdateInterval

BitmapRequested 이벤트의 트리거 간격을 가져오거나 설정합니다. 제공된 이미지는 이벤트가 다음에 트리거될 때까지 표시됩니다.

ZIndex

동일한 LampArray에서 동일한 램프를 수정하는 두 가지 효과에 대한 전역 우선 순위(모든 재생 목록)를 가져오거나 설정합니다.

이벤트

BitmapRequested

시스템에서 새 이미지를 효과에 제공해야 함을 나타내기 위해 트리거되는 이벤트입니다.

적용 대상

추가 정보