GUI/GDI
-
프린트 - C#GUI/GDI 2014. 10. 16. 18:50
System.Drawing.Printing.PrintPageEventArgs -> System.EventArgs.MarginBounds.HasMorePages System.Drawing.Printing.PrintDocument -> System.ComponentModel.Componenton BeginPrint // PrintEventHandleron EndPrint // PrintEventHandleron PrintPage // PrintPageEventHandler .PrinterSettings.DocumentName .Print()
-
C#(GDI+)GUI/GDI 2014. 2. 10. 00:40
GDI+가 GDI(BMP)에 비해 월등히 우수한 점은 압축 이미지를 다룰 수 있다는 점이다.JPG, GIF, PNG, TIFF System.Drawing.Pen System.Drawing.SolidBrush -> System.Drawing.Brush System.Drawing.Font System.Drawing.StringFormat System.Drawing.Drawing2D.GraphicsPath.AddLine().AddString() System.Windows.Forms.Control -> System.ComponentModel.ComponentOnPaintBackground .ClientRectangle.Font .SetStyle()ControlStyles.ResizeRedraw System.Wi..
-
프린트GUI/GDI 2013. 8. 16. 23:51
java.awt.print.Printable // interface.NO_SUCH_PAGE.PAGE_EXISTS int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException;java.awt.print.Pageable // interfaceint getNumberOfPages();PageFormat getPageFormat(int pageIndex) throws IndexOutOfBoundsException;Printable getPrintable(int pageIndex) throws IndexOutOfBoundsException;java.awt.print.PageFormat.getImageableX()..
-
자바GUI/GDI 2013. 7. 17. 15:38
java.awt.Dimension java.awt.Color.black // final static.red // final static.GREEN.green // final static.yellow // final static.blue // final static java.awt.Font.BOLD java.awt.FontMetrics.getAscent() java.awt.ImageToolkit.getDefaultToolkit().getImage() java.awt.Graphics.getGraphics().setColor().setFont().drawString().drawLine().drawRect().fillRect().drawRoundRect().fillOval().drawPolygon().drawI..
-
wxWidgetsGUI/GDI 2013. 7. 4. 03:15
wxColour wxBrush wxBitmap wxDC wxMemoryDC -> wxDC.SelectObject().SetBrush().DrawRectangle().DrawCircle() wxPaintDC -> wxDC.SetBrush().DrawCircle().Blit() wxWindow.OnPaint // virtual? .Refresh().RefreshRect().Update().GetClientSize() wxFrame#include "wx/wx.h" class MyFrame : public wxFrame{public:MyFrame(const wxString& title, const wxPoint& pos, const wxSize& size, long style = wxDEFAULT_FRAME_S..
-
이미지 리스트 - Win32GUI/GDI 2009. 6. 29. 02:07
HIMAGELIST ImageList_LoadBitmap() ImageList_LoadImage() IMAGE_BITMAP LR_LOADFROMFILE ImageList_Destroy() ImageList_Draw() ILD_NORMAL #include #pragma comment(lib, "comctl32") LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { int wmId, wmEvent; PAINTSTRUCT ps; HDC hdc; TCHAR szHello[MAX_LOADSTRING]; LoadString(g_hInst, IDS_HELLO, szHello, MAX_LOADSTRING); // { stat..
-
컴퓨터 화면 캡쳐 - Win32GUI/GDI 2009. 6. 4. 23:18
void SetCapture(CRect &rc) { CDC ScreenDC; ScreenDC.CreateDC("DISPLAY", NULL, NULL, NULL); CDC memDC; CSize s = CSize(rc.Size()); CBitmap bm; memDC.CreateCompatibleDC(&ScreenDC); bm.CreateCompatibleBitmap(&ScreenDC, s.cx, s.cy); memDC.SelectObject(&bm); memDC.BitBlt(0,0,s.cx, s.cy,&ScreenDC, rc.left, rc.top,SRCCOPY); HBITMAP hbit = (HBITMAP)bm; if (hbit == NULL) ::MessageBox(NULL, "bmp파일 생성이 실패하..