Hacking/etc2010. 7. 5. 23:54


Maj3sty 님의 블로그 문제이다.
1번으로 찍었는대 맞았다! 
ㅋㅋㅋ
어쨌거나 맞췄으므로 친필 싸인 수령

.
.
.



'Hacking > etc' 카테고리의 다른 글

webhacking.kr All Clear~~!!  (2) 2010.06.15
아스키코드표  (0) 2010.05.29
Posted by zzibong
Programming/Android2010. 7. 5. 21:37


<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffffff"
>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content"
>
<Button
android:id="@+id/btnpage1"  
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Page 1"
/>
<Button
android:id="@+id/btnpage2"  
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Page 2"
/>
<Button
android:id="@+id/btnpage3"  
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:text="Page 3"
/>
</LinearLayout>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:id="@+id/page1"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#ffff00"
>
<TextView  
android:layout_width="match_parent" 
android:layout_height="wrap_content"
android:textColor="#000000" 
android:text="첫 번째 페이지"
/>
<ImageView  
android:layout_width="wrap_content" 
android:layout_height="wrap_content" 
android:src="@drawable/pride"
/>
</LinearLayout>
<RelativeLayout
android:id="@+id/page2"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:visibility="invisible"
android:background="#00ff00"
>
<EditText
android:layout_width="wrap_content" 
android:layout_height="wrap_content"
android:layout_alignParentRight="true" 
android:text="두번째 페이지"
/>
<Button
android:layout_width="wrap_content" 
android:layout_height="wrap_content"
android:layout_alignParentBottom="true" 
android:text="Button"
/>
</RelativeLayout>
<TableLayout
android:id="@+id/page3"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible"
android:background="#0000ff"
>
<TableRow>
<TextView android:text="국어" android:textSize="15pt" android:padding="10px" />
<TextView android:text="영어" android:textSize="15pt" android:padding="10px" />
<TextView android:text="수학" android:textSize="15pt" android:padding="10px" />
</TableRow>
<TableRow>
<TextView android:text="88" android:textSize="15pt" android:padding="10px" />
<TextView android:text="92" android:textSize="15pt" android:padding="10px" />
<TextView android:text="76" android:textSize="15pt" android:padding="10px" />
</TableRow>
</TableLayout>
</FrameLayout>
</LinearLayout>


참고서 - 안드로이드 프로그래밍 정복

'Programming > Android' 카테고리의 다른 글

리스너  (0) 2010.08.02
Memo  (0) 2010.08.02
PaintTest  (3) 2010.07.09
Posted by zzibong
Programming/MFC2010. 6. 27. 18:12


#include <atlimage.h>

void CSaveGrayDemoView::OnRButtonDown(UINT nFlags, CPoint point)
{
// 바탕 화면 윈도우 객체에 대한 포인터를 얻음
CWnd* pWndDesktop = GetDesktopWindow();
CWindowDC ScrDC(pWndDesktop);
CClientDC dc(this);

// 바탕 화면 윈도우의 크기를 알아낸다.
CRect Rect;
pWndDesktop->GetWindowRect(&Rect);

// 바탕 화면 크기 및 색상 수와 동일한 비트맵 이미지를 만든다.
CImage Image;
int cx = Rect.Width();
int cy = Rect.Height();
Image.Create(
cx, cy, ScrDC.GetDeviceCaps(BITSPIXEL));

// 이미지 DC와 화면 DC에 바탕 화면 윈도우 화면을 출력한다.
CDC* pDC = CDC::FromHandle(Image.GetDC());
pDC->BitBlt(0, 0, cx, cy, &ScrDC, 0, 0, SRCCOPY);
dc.BitBlt(0, 0, cx, cy, pDC, 0, 0, SRCCOPY);
Image.ReleaseDC();

// JPEG 형식으로 바탕
 화면 이미지를 저장한다.
Image.Save(_T("Desktop.jpg"), Gdiplus::ImageFormatJPEG);
// 저장된 이미지를 뷰어를 실행하여 보여준다.
::ShellExecute(NULL,
_T("open"), _T("Desktop.jpg"),
NULL, NULL, SW_SHOW);

CView::OnRButtonDown(nFlags, point);
}

'Programming > MFC' 카테고리의 다른 글

비트맵 및 이미지 처리 - 흑백 변환  (1) 2010.06.27
비트맵과 이미지 처리  (1) 2010.06.22
Posted by zzibong