0

ms 페인트와 같은 실버 프로젝트를 만들고 싶습니다. 나는 예를 발견했다. 하지만 문제가 있습니다. DrawingArea 그리드를 이미지 파일 또는 바이트로 저장할 수 없습니다. DrawingArea 그리드를 바이트로 저장하는 방법을 모르겠다. PLZ 나에게그리드를 바이트로 저장

  <UserControl 
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Class="SilverlightPaintApplication.MainPage" 
      Width="805" Height="600" mc:Ignorable="d" BorderThickness="0,0,0,0" BorderBrush="{x:Null}"> 
      <Grid x:Name="LayoutRoot" Background="#FFFFFFFF" Width="Auto" > 

       ... 

      <Grid x:Name="DrawingArea" Margin="0,0,-5,8" MouseMove="DrawingArea_MouseMove" MouseLeftButtonDown="DrawingArea_MouseLeftButtonDown" MouseLeftButtonUp="DrawingArea_MouseLeftButtonUp" Background="#FFFFFFFF"/> 

       ... 

      </Grid> 
     </UserControl> 

답변