728x90
반응형
728x170
using System;
using System.Windows.Media;
#region Color 객체 구하기 - GetColor(colorValue)
/// <summary>
/// Color 객체 구하기
/// </summary>
/// <param name="colorValue">색상 값</param>
/// <returns>Color 객체</returns>
public Color GetColor(int colorValue)
{
byte[] byteArray = BitConverter.GetBytes(colorValue);
return Color.FromArgb(byteArray[3], byteArray[2], byteArray[1], byteArray[0]);
}
#endregion
728x90
반응형
그리드형(광고전용)
'C# > WPF' 카테고리의 다른 글
[C#/WPF] BitmapSource 클래스 : 픽셀 정수 배열 구하기 (0) | 2014.01.26 |
---|---|
[C#/WPF] BitmapSource 클래스 : 픽셀 바이트 배열 구하기 (0) | 2014.01.26 |
[C#/WPF] RenderTargetBitmap 클래스 : MediaPlayer 객체에서 비트맵 구하기 (0) | 2014.01.26 |
[C#/WPF] MediaPlayer 클래스 : 재생하기 (0) | 2014.01.26 |
[C#/WPF] MediaPlayer 클래스 : 비디오 크기 구하기 (0) | 2014.01.26 |
[C#/WPF] BitConverter 클래스 : Color 색상 값 계산하기 (0) | 2014.01.26 |
[C#/WPF] TransformedBitmap 클래스 : 변환 비트맵 생성하기 (0) | 2014.01.26 |
[C#/WPF] BitmapSource 클래스 : JPEG 파일 저장하기 (0) | 2014.01.26 |
[C#/WPF] DrawingVisual 클래스 : 라운드 사각형 이미지 구하기 (0) | 2014.01.25 |
[C#/WPF] RenderTargetBitmap 클래스 : DrawingVisual 객체에서 비트맵 구하기 (0) | 2014.01.25 |
댓글을 달아 주세요