/
GDI32.html
823 lines (762 loc) · 48.8 KB
/
GDI32.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<TITLE>
GDI32 (JNA API)
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="GDI32 (JNA API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>JNA API</><font size="-1"> 3.3.0</font></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../com/sun/jna/platform/win32/DsGetDC.PDS_DOMAIN_TRUSTS.ByReference.html" title="class in com.sun.jna.platform.win32"><B>PREV CLASS</B></A>
<A HREF="../../../../../com/sun/jna/platform/win32/Guid.html" title="interface in com.sun.jna.platform.win32"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?com/sun/jna/platform/win32/GDI32.html" target="_top"><B>FRAMES</B></A>
<A HREF="GDI32.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.sun.jna.platform.win32</FONT>
<BR>
Interface GDI32</H2>
<DL>
<DT><B>All Superinterfaces:</B> <DD><A HREF="../../../../../com/sun/jna/AltCallingConvention.html" title="interface in com.sun.jna">AltCallingConvention</A>, <A HREF="../../../../../com/sun/jna/Library.html" title="interface in com.sun.jna">Library</A>, <A HREF="../../../../../com/sun/jna/win32/StdCall.html" title="interface in com.sun.jna.win32">StdCall</A>, <A HREF="../../../../../com/sun/jna/win32/StdCallLibrary.html" title="interface in com.sun.jna.win32">StdCallLibrary</A></DD>
</DL>
<HR>
<DL>
<DT><PRE>public interface <B>GDI32</B><DT>extends <A HREF="../../../../../com/sun/jna/win32/StdCallLibrary.html" title="interface in com.sun.jna.win32">StdCallLibrary</A></DL>
</PRE>
<P>
Definition (incomplete) of <code>gdi32.dll</code>.
<P>
<P>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
</TABLE>
<A NAME="nested_classes_inherited_from_class_com.sun.jna.win32.StdCallLibrary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from interface com.sun.jna.win32.<A HREF="../../../../../com/sun/jna/win32/StdCallLibrary.html" title="interface in com.sun.jna.win32">StdCallLibrary</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../com/sun/jna/win32/StdCallLibrary.StdCallCallback.html" title="interface in com.sun.jna.win32">StdCallLibrary.StdCallCallback</A></CODE></TD>
</TR>
</TABLE>
<A NAME="nested_classes_inherited_from_class_com.sun.jna.Library"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Nested classes/interfaces inherited from interface com.sun.jna.<A HREF="../../../../../com/sun/jna/Library.html" title="interface in com.sun.jna">Library</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../com/sun/jna/Library.Handler.html" title="class in com.sun.jna">Library.Handler</A></CODE></TD>
</TR>
</TABLE>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>static <A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html" title="interface in com.sun.jna.platform.win32">GDI32</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#INSTANCE">INSTANCE</A></B></CODE>
<BR>
</TD>
</TR>
</TABLE>
<A NAME="fields_inherited_from_class_com.sun.jna.win32.StdCallLibrary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from interface com.sun.jna.win32.<A HREF="../../../../../com/sun/jna/win32/StdCallLibrary.html" title="interface in com.sun.jna.win32">StdCallLibrary</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../com/sun/jna/win32/StdCallLibrary.html#FUNCTION_MAPPER">FUNCTION_MAPPER</A>, <A HREF="../../../../../com/sun/jna/win32/StdCallLibrary.html#STDCALL_CONVENTION">STDCALL_CONVENTION</A></CODE></TD>
</TR>
</TABLE>
<A NAME="fields_inherited_from_class_com.sun.jna.Library"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Fields inherited from interface com.sun.jna.<A HREF="../../../../../com/sun/jna/Library.html" title="interface in com.sun.jna">Library</A></B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../../../com/sun/jna/Library.html#OPTION_ALLOW_OBJECTS">OPTION_ALLOW_OBJECTS</A>, <A HREF="../../../../../com/sun/jna/Library.html#OPTION_CALLING_CONVENTION">OPTION_CALLING_CONVENTION</A>, <A HREF="../../../../../com/sun/jna/Library.html#OPTION_FUNCTION_MAPPER">OPTION_FUNCTION_MAPPER</A>, <A HREF="../../../../../com/sun/jna/Library.html#OPTION_INVOCATION_MAPPER">OPTION_INVOCATION_MAPPER</A>, <A HREF="../../../../../com/sun/jna/Library.html#OPTION_STRUCTURE_ALIGNMENT">OPTION_STRUCTURE_ALIGNMENT</A>, <A HREF="../../../../../com/sun/jna/Library.html#OPTION_TYPE_MAPPER">OPTION_TYPE_MAPPER</A></CODE></TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#CombineRgn(com.sun.jna.platform.win32.WinDef.HRGN, com.sun.jna.platform.win32.WinDef.HRGN, com.sun.jna.platform.win32.WinDef.HRGN, int)">CombineRgn</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> hrgnDest,
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> hrgnSrc1,
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> hrgnSrc2,
int fnCombineMode)</CODE>
<BR>
The CombineRgn function combines two regions and stores the result in a third region.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HBITMAP.html" title="class in com.sun.jna.platform.win32">WinDef.HBITMAP</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#CreateCompatibleBitmap(com.sun.jna.platform.win32.WinDef.HDC, int, int)">CreateCompatibleBitmap</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC,
int width,
int height)</CODE>
<BR>
The CreateCompatibleBitmap function creates a bitmap compatible with the device that is
associated with the specified device context.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#CreateCompatibleDC(com.sun.jna.platform.win32.WinDef.HDC)">CreateCompatibleDC</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC)</CODE>
<BR>
The CreateCompatibleDC function creates a memory device context (DC) compatible with the specified device.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HBITMAP.html" title="class in com.sun.jna.platform.win32">WinDef.HBITMAP</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#CreateDIBitmap(com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinGDI.BITMAPINFOHEADER, int, com.sun.jna.Pointer, com.sun.jna.platform.win32.WinGDI.BITMAPINFO, int)">CreateDIBitmap</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC,
<A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFOHEADER.html" title="class in com.sun.jna.platform.win32">WinGDI.BITMAPINFOHEADER</A> lpbmih,
int fdwInit,
<A HREF="../../../../../com/sun/jna/Pointer.html" title="class in com.sun.jna">Pointer</A> lpbInit,
<A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFO.html" title="class in com.sun.jna.platform.win32">WinGDI.BITMAPINFO</A> lpbmi,
int fuUsage)</CODE>
<BR>
The CreateDIBitmap function creates a compatible bitmap (DDB) from a DIB and, optionally,
sets the bitmap bits.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HBITMAP.html" title="class in com.sun.jna.platform.win32">WinDef.HBITMAP</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#CreateDIBSection(com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinGDI.BITMAPINFO, int, com.sun.jna.ptr.PointerByReference, com.sun.jna.Pointer, int)">CreateDIBSection</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC,
<A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFO.html" title="class in com.sun.jna.platform.win32">WinGDI.BITMAPINFO</A> pbmi,
int iUsage,
<A HREF="../../../../../com/sun/jna/ptr/PointerByReference.html" title="class in com.sun.jna.ptr">PointerByReference</A> ppvBits,
<A HREF="../../../../../com/sun/jna/Pointer.html" title="class in com.sun.jna">Pointer</A> hSection,
int dwOffset)</CODE>
<BR>
The CreateDIBSection function creates a DIB that applications can write to directly.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#CreatePolyPolygonRgn(com.sun.jna.platform.win32.WinUser.POINT[], int[], int, int)">CreatePolyPolygonRgn</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinUser.POINT.html" title="class in com.sun.jna.platform.win32">WinUser.POINT</A>[] lppt,
int[] lpPolyCounts,
int nCount,
int fnPolyFillMode)</CODE>
<BR>
The CreatePolyPolygonRgn function creates a region consisting of a series
of polygons.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#CreateRectRgn(int, int, int, int)">CreateRectRgn</A></B>(int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect)</CODE>
<BR>
The CreateRectRgn function creates a rectangular region.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#CreateRoundRectRgn(int, int, int, int, int, int)">CreateRoundRectRgn</A></B>(int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect,
int nWidthEllipse,
int nHeightEllipse)</CODE>
<BR>
The CreateRoundRectRgn function creates a rectangular region with rounded corners.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#DeleteDC(com.sun.jna.platform.win32.WinDef.HDC)">DeleteDC</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC)</CODE>
<BR>
The DeleteDC function deletes the specified device context (DC).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#DeleteObject(com.sun.jna.platform.win32.WinNT.HANDLE)">DeleteObject</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinNT.HANDLE.html" title="class in com.sun.jna.platform.win32">WinNT.HANDLE</A> hObject)</CODE>
<BR>
The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette,
freeing all system resources associated with the object.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#ExtCreateRegion(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.WinGDI.RGNDATA)">ExtCreateRegion</A></B>(<A HREF="../../../../../com/sun/jna/Pointer.html" title="class in com.sun.jna">Pointer</A> lpXform,
int nCount,
<A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.RGNDATA.html" title="class in com.sun.jna.platform.win32">WinGDI.RGNDATA</A> lpRgnData)</CODE>
<BR>
The ExtCreateRegion function creates a region from the specified region and transformation data.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#GetDeviceCaps(com.sun.jna.platform.win32.WinDef.HDC, int)">GetDeviceCaps</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hdc,
int nIndex)</CODE>
<BR>
The GetDeviceCaps function retrieves device-specific information for
the specified device.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#GetDIBits(com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinDef.HBITMAP, int, int, com.sun.jna.Pointer, com.sun.jna.platform.win32.WinGDI.BITMAPINFO, int)">GetDIBits</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hdc,
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HBITMAP.html" title="class in com.sun.jna.platform.win32">WinDef.HBITMAP</A> hbmp,
int uStartScan,
int cScanLines,
<A HREF="../../../../../com/sun/jna/Pointer.html" title="class in com.sun.jna">Pointer</A> lpvBits,
<A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFO.html" title="class in com.sun.jna.platform.win32">WinGDI.BITMAPINFO</A> lpbi,
int uUsage)</CODE>
<BR>
The GetDIBits function retrieves the bits fo the specified compatible
bitmap and copies them into a buffer as a DIB using the specified
format.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../../com/sun/jna/platform/win32/WinNT.HANDLE.html" title="class in com.sun.jna.platform.win32">WinNT.HANDLE</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#SelectObject(com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinNT.HANDLE)">SelectObject</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC,
<A HREF="../../../../../com/sun/jna/platform/win32/WinNT.HANDLE.html" title="class in com.sun.jna.platform.win32">WinNT.HANDLE</A> hGDIObj)</CODE>
<BR>
The SelectObject function selects an object into the specified device context (DC).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#SetPixel(com.sun.jna.platform.win32.WinDef.HDC, int, int, int)">SetPixel</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC,
int x,
int y,
int crColor)</CODE>
<BR>
The SetPixel function sets the pixel at the specified coordinates to the specified color.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html#SetRectRgn(com.sun.jna.platform.win32.WinDef.HRGN, int, int, int, int)">SetRectRgn</A></B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> hrgn,
int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect)</CODE>
<BR>
The SetRectRgn function converts a region into a rectangular region with the specified coordinates.</TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="INSTANCE"><!-- --></A><H3>
INSTANCE</H3>
<PRE>
static final <A HREF="../../../../../com/sun/jna/platform/win32/GDI32.html" title="interface in com.sun.jna.platform.win32">GDI32</A> <B>INSTANCE</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="ExtCreateRegion(com.sun.jna.Pointer, int, com.sun.jna.platform.win32.WinGDI.RGNDATA)"><!-- --></A><H3>
ExtCreateRegion</H3>
<PRE>
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> <B>ExtCreateRegion</B>(<A HREF="../../../../../com/sun/jna/Pointer.html" title="class in com.sun.jna">Pointer</A> lpXform,
int nCount,
<A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.RGNDATA.html" title="class in com.sun.jna.platform.win32">WinGDI.RGNDATA</A> lpRgnData)</PRE>
<DL>
<DD>The ExtCreateRegion function creates a region from the specified region and transformation data.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>lpXform</CODE> - Pointer to an XFORM structure that defines the transformation to be performed on the region. If this pointer is NULL,
the identity transformation is used.<DD><CODE>nCount</CODE> - Specifies the number of bytes pointed to by lpRgnData.<DD><CODE>lpRgnData</CODE> - Pointer to a RGNDATA structure that contains the region data in logical units.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is the value of the region.
If the function fails, the return value is NULL.
To get extended error information, call GetLastError.</DL>
</DD>
</DL>
<HR>
<A NAME="CombineRgn(com.sun.jna.platform.win32.WinDef.HRGN, com.sun.jna.platform.win32.WinDef.HRGN, com.sun.jna.platform.win32.WinDef.HRGN, int)"><!-- --></A><H3>
CombineRgn</H3>
<PRE>
int <B>CombineRgn</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> hrgnDest,
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> hrgnSrc1,
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> hrgnSrc2,
int fnCombineMode)</PRE>
<DL>
<DD>The CombineRgn function combines two regions and stores the result in a third region.
The two regions are combined according to the specified mode.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hrgnDest</CODE> - Handle to a new region with dimensions defined by combining two other regions.<DD><CODE>hrgnSrc1</CODE> - Handle to the first of two regions to be combined.<DD><CODE>hrgnSrc2</CODE> - Handle to the second of two regions to be combined.<DD><CODE>fnCombineMode</CODE> - Specifies a mode indicating how the two regions will be combined.
<DT><B>Returns:</B><DD>The return value specifies the type of the resulting region.</DL>
</DD>
</DL>
<HR>
<A NAME="CreateRectRgn(int, int, int, int)"><!-- --></A><H3>
CreateRectRgn</H3>
<PRE>
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> <B>CreateRectRgn</B>(int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect)</PRE>
<DL>
<DD>The CreateRectRgn function creates a rectangular region.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nLeftRect</CODE> - Specifies the x-coordinate of the upper-left corner of the region in logical units.<DD><CODE>nTopRect</CODE> - Specifies the y-coordinate of the upper-left corner of the region in logical units.<DD><CODE>nRightRect</CODE> - Specifies the x-coordinate of the lower-right corner of the region in logical units.<DD><CODE>nBottomRect</CODE> - Specifies the y-coordinate of the lower-right corner of the region in logical units.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is the handle to the region.
If the function fails, the return value is NULL.
To get extended error information, call GetLastError.</DL>
</DD>
</DL>
<HR>
<A NAME="CreateRoundRectRgn(int, int, int, int, int, int)"><!-- --></A><H3>
CreateRoundRectRgn</H3>
<PRE>
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> <B>CreateRoundRectRgn</B>(int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect,
int nWidthEllipse,
int nHeightEllipse)</PRE>
<DL>
<DD>The CreateRoundRectRgn function creates a rectangular region with rounded corners.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>nLeftRect</CODE> - Specifies the x-coordinate of the upper-left corner of the region in logical units.<DD><CODE>nTopRect</CODE> - Specifies the y-coordinate of the upper-left corner of the region in logical units.<DD><CODE>nRightRect</CODE> - Specifies the x-coordinate of the lower-right corner of the region in logical units.<DD><CODE>nBottomRect</CODE> - Specifies the y-coordinate of the lower-right corner of the region in logical units.<DD><CODE>nWidthEllipse</CODE> - Specifies the width of the ellipse used to create the rounded corners in logical units.<DD><CODE>nHeightEllipse</CODE> - Specifies the height of the ellipse used to create the rounded corners in logical units.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is the handle to the region.
If the function fails, the return value is NULL.
To get extended error information, call GetLastError.</DL>
</DD>
</DL>
<HR>
<A NAME="CreatePolyPolygonRgn(com.sun.jna.platform.win32.WinUser.POINT[], int[], int, int)"><!-- --></A><H3>
CreatePolyPolygonRgn</H3>
<PRE>
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> <B>CreatePolyPolygonRgn</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinUser.POINT.html" title="class in com.sun.jna.platform.win32">WinUser.POINT</A>[] lppt,
int[] lpPolyCounts,
int nCount,
int fnPolyFillMode)</PRE>
<DL>
<DD>The CreatePolyPolygonRgn function creates a region consisting of a series
of polygons. The polygons can overlap.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>lppt</CODE> - Pointer to an array of POINT structures that define the vertices of the polygons in logical units.
The polygons are specified consecutively. Each polygon is presumed closed and each vertex is
specified only once.<DD><CODE>lpPolyCounts</CODE> - Pointer to an array of integers, each of which specifies the number of points in one of the polygons
in the array pointed to by lppt.<DD><CODE>nCount</CODE> - Specifies the total number of integers in the array pointed to by lpPolyCounts.<DD><CODE>fnPolyFillMode</CODE> - Specifies the fill mode used to determine which pixels are in the region.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is the handle to the region.
If the function fails, the return value is zero.
To get extended error information, call GetLastError.</DL>
</DD>
</DL>
<HR>
<A NAME="SetRectRgn(com.sun.jna.platform.win32.WinDef.HRGN, int, int, int, int)"><!-- --></A><H3>
SetRectRgn</H3>
<PRE>
boolean <B>SetRectRgn</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HRGN.html" title="class in com.sun.jna.platform.win32">WinDef.HRGN</A> hrgn,
int nLeftRect,
int nTopRect,
int nRightRect,
int nBottomRect)</PRE>
<DL>
<DD>The SetRectRgn function converts a region into a rectangular region with the specified coordinates.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hrgn</CODE> - Handle to the region.<DD><CODE>nLeftRect</CODE> - Specifies the x-coordinate of the upper-left corner of the rectangular region in logical units.<DD><CODE>nTopRect</CODE> - Specifies the y-coordinate of the upper-left corner of the rectangular region in logical units.<DD><CODE>nRightRect</CODE> - Specifies the x-coordinate of the lower-right corner of the rectangular region in logical units.<DD><CODE>nBottomRect</CODE> - Specifies the y-coordinate of the lower-right corner of the rectangular region in logical units.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
To get extended error information, call GetLastError.</DL>
</DD>
</DL>
<HR>
<A NAME="SetPixel(com.sun.jna.platform.win32.WinDef.HDC, int, int, int)"><!-- --></A><H3>
SetPixel</H3>
<PRE>
int <B>SetPixel</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC,
int x,
int y,
int crColor)</PRE>
<DL>
<DD>The SetPixel function sets the pixel at the specified coordinates to the specified color.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hDC</CODE> - Handle to the device context.<DD><CODE>x</CODE> - Specifies the x-coordinate, in logical units, of the point to be set.<DD><CODE>y</CODE> - Specifies the y-coordinate, in logical units, of the point to be set.<DD><CODE>crColor</CODE> - Specifies the color to be used to paint the point. To create a COLORREF color value, use the RGB macro.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is the RGB value that the function sets the pixel to.
This value may differ from the color specified by crColor; that occurs when an exact match for the
specified color cannot be found. If the function fails, the return value is 1. To get extended error
information, call GetLastError. This can be the following value.</DL>
</DD>
</DL>
<HR>
<A NAME="CreateCompatibleDC(com.sun.jna.platform.win32.WinDef.HDC)"><!-- --></A><H3>
CreateCompatibleDC</H3>
<PRE>
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> <B>CreateCompatibleDC</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC)</PRE>
<DL>
<DD>The CreateCompatibleDC function creates a memory device context (DC) compatible with the specified device.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hDC</CODE> - Handle to an existing DC. If this handle is NULL, the function creates a memory DC compatible with the
application's current screen.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is the handle to a memory DC.
If the function fails, the return value is NULL.
To get extended error information, call GetLastError.</DL>
</DD>
</DL>
<HR>
<A NAME="DeleteDC(com.sun.jna.platform.win32.WinDef.HDC)"><!-- --></A><H3>
DeleteDC</H3>
<PRE>
boolean <B>DeleteDC</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC)</PRE>
<DL>
<DD>The DeleteDC function deletes the specified device context (DC).
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hDC</CODE> - Handle to the device context.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero.
To get extended error information, call GetLastError.</DL>
</DD>
</DL>
<HR>
<A NAME="CreateDIBitmap(com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinGDI.BITMAPINFOHEADER, int, com.sun.jna.Pointer, com.sun.jna.platform.win32.WinGDI.BITMAPINFO, int)"><!-- --></A><H3>
CreateDIBitmap</H3>
<PRE>
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HBITMAP.html" title="class in com.sun.jna.platform.win32">WinDef.HBITMAP</A> <B>CreateDIBitmap</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC,
<A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFOHEADER.html" title="class in com.sun.jna.platform.win32">WinGDI.BITMAPINFOHEADER</A> lpbmih,
int fdwInit,
<A HREF="../../../../../com/sun/jna/Pointer.html" title="class in com.sun.jna">Pointer</A> lpbInit,
<A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFO.html" title="class in com.sun.jna.platform.win32">WinGDI.BITMAPINFO</A> lpbmi,
int fuUsage)</PRE>
<DL>
<DD>The CreateDIBitmap function creates a compatible bitmap (DDB) from a DIB and, optionally,
sets the bitmap bits.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hDC</CODE> - Handle to a device context.<DD><CODE>lpbmih</CODE> - Pointer to a bitmap information header structure, which may be one of those shown in the following table.<DD><CODE>fdwInit</CODE> - Specifies how the system initializes the bitmap bits.<DD><CODE>lpbInit</CODE> - Pointer to an array of bytes containing the initial bitmap data.<DD><CODE>lpbmi</CODE> - Pointer to a BITMAPINFO structure that describes the dimensions and color format of
the array pointed to by the lpbInit parameter.<DD><CODE>fuUsage</CODE> - Specifies whether the bmiColors member of the BITMAPINFO structure was initialized and, if so,
whether bmiColors contains explicit red, green, blue (RGB) values or palette indexes. The
fuUsage parameter must be one of the following values.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is a handle to the compatible bitmap.
If the function fails, the return value is NULL.
To get extended error information, call GetLastError.</DL>
</DD>
</DL>
<HR>
<A NAME="CreateDIBSection(com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinGDI.BITMAPINFO, int, com.sun.jna.ptr.PointerByReference, com.sun.jna.Pointer, int)"><!-- --></A><H3>
CreateDIBSection</H3>
<PRE>
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HBITMAP.html" title="class in com.sun.jna.platform.win32">WinDef.HBITMAP</A> <B>CreateDIBSection</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC,
<A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFO.html" title="class in com.sun.jna.platform.win32">WinGDI.BITMAPINFO</A> pbmi,
int iUsage,
<A HREF="../../../../../com/sun/jna/ptr/PointerByReference.html" title="class in com.sun.jna.ptr">PointerByReference</A> ppvBits,
<A HREF="../../../../../com/sun/jna/Pointer.html" title="class in com.sun.jna">Pointer</A> hSection,
int dwOffset)</PRE>
<DL>
<DD>The CreateDIBSection function creates a DIB that applications can write to directly.
The function gives you a pointer to the location of the bitmap bit values. You can supply
a handle to a file-mapping object that the function will use to create the bitmap, or you
can let the system allocate the memory for the bitmap.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hDC</CODE> - Handle to a device context. If the value of iUsage is DIB_PAL_COLORS, the function uses this
device context's logical palette to initialize the DIB colors.<DD><CODE>pbmi</CODE> - Pointer to a BITMAPINFO structure that specifies various attributes of the DIB, including
the bitmap dimensions and colors.<DD><CODE>iUsage</CODE> - Specifies the type of data contained in the bmiColors array member of the BITMAPINFO structure
pointed to by pbmi (either logical palette indexes or literal RGB values).<DD><CODE>ppvBits</CODE> - Pointer to a variable that receives a pointer to the location of the DIB bit values.<DD><CODE>hSection</CODE> - Handle to a file-mapping object that the function will use to create the DIB. This parameter can be NULL.<DD><CODE>dwOffset</CODE> - Specifies the offset from the beginning of the file-mapping object referenced by hSection where storage
for the bitmap bit values is to begin.
<DT><B>Returns:</B><DD>Specifies the offset from the beginning of the file-mapping object referenced by hSection where storage
for the bitmap bit values is to begin.</DL>
</DD>
</DL>
<HR>
<A NAME="CreateCompatibleBitmap(com.sun.jna.platform.win32.WinDef.HDC, int, int)"><!-- --></A><H3>
CreateCompatibleBitmap</H3>
<PRE>
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HBITMAP.html" title="class in com.sun.jna.platform.win32">WinDef.HBITMAP</A> <B>CreateCompatibleBitmap</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC,
int width,
int height)</PRE>
<DL>
<DD>The CreateCompatibleBitmap function creates a bitmap compatible with the device that is
associated with the specified device context.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hDC</CODE> - Handle to a device context.<DD><CODE>width</CODE> - Specifies the bitmap width, in pixels.<DD><CODE>height</CODE> - Specifies the bitmap height, in pixels.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is a handle to the compatible bitmap (DDB).
If the function fails, the return value is NULL.
To get extended error information, call GetLastError.</DL>
</DD>
</DL>
<HR>
<A NAME="SelectObject(com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinNT.HANDLE)"><!-- --></A><H3>
SelectObject</H3>
<PRE>
<A HREF="../../../../../com/sun/jna/platform/win32/WinNT.HANDLE.html" title="class in com.sun.jna.platform.win32">WinNT.HANDLE</A> <B>SelectObject</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hDC,
<A HREF="../../../../../com/sun/jna/platform/win32/WinNT.HANDLE.html" title="class in com.sun.jna.platform.win32">WinNT.HANDLE</A> hGDIObj)</PRE>
<DL>
<DD>The SelectObject function selects an object into the specified device context (DC).
The new object replaces the previous object of the same type.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hDC</CODE> - Handle to the DC.<DD><CODE>hGDIObj</CODE> - Handle to the object to be selected.
<DT><B>Returns:</B><DD>If the selected object is not a region and the function succeeds, the return value
is a handle to the object being replaced. If the selected object is a region and the
function succeeds, the return value is one of the REGION values.</DL>
</DD>
</DL>
<HR>
<A NAME="DeleteObject(com.sun.jna.platform.win32.WinNT.HANDLE)"><!-- --></A><H3>
DeleteObject</H3>
<PRE>
boolean <B>DeleteObject</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinNT.HANDLE.html" title="class in com.sun.jna.platform.win32">WinNT.HANDLE</A> hObject)</PRE>
<DL>
<DD>The DeleteObject function deletes a logical pen, brush, font, bitmap, region, or palette,
freeing all system resources associated with the object. After the object is deleted, the
specified handle is no longer valid.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hObject</CODE> - Handle to a logical pen, brush, font, bitmap, region, or palette.
<DT><B>Returns:</B><DD>If the function succeeds, the return value is nonzero.
If the specified handle is not valid or is currently selected into a DC, the return value is zero.
To get extended error information, call GetLastError.</DL>
</DD>
</DL>
<HR>
<A NAME="GetDeviceCaps(com.sun.jna.platform.win32.WinDef.HDC, int)"><!-- --></A><H3>
GetDeviceCaps</H3>
<PRE>
int <B>GetDeviceCaps</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hdc,
int nIndex)</PRE>
<DL>
<DD>The GetDeviceCaps function retrieves device-specific information for
the specified device.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hdc</CODE> - A handle to the DC.<DD><CODE>nIndex</CODE> - The item to be returned.
<DT><B>Returns:</B><DD>The return value specifies the value of the desired item. When
<i>nIndex</i> is <code>BITSPIXEL</code> and the device has 15bpp or
16bpp, the return value is 16.</DL>
</DD>
</DL>
<HR>
<A NAME="GetDIBits(com.sun.jna.platform.win32.WinDef.HDC, com.sun.jna.platform.win32.WinDef.HBITMAP, int, int, com.sun.jna.Pointer, com.sun.jna.platform.win32.WinGDI.BITMAPINFO, int)"><!-- --></A><H3>
GetDIBits</H3>
<PRE>
int <B>GetDIBits</B>(<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HDC.html" title="class in com.sun.jna.platform.win32">WinDef.HDC</A> hdc,
<A HREF="../../../../../com/sun/jna/platform/win32/WinDef.HBITMAP.html" title="class in com.sun.jna.platform.win32">WinDef.HBITMAP</A> hbmp,
int uStartScan,
int cScanLines,
<A HREF="../../../../../com/sun/jna/Pointer.html" title="class in com.sun.jna">Pointer</A> lpvBits,
<A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFO.html" title="class in com.sun.jna.platform.win32">WinGDI.BITMAPINFO</A> lpbi,
int uUsage)</PRE>
<DL>
<DD>The GetDIBits function retrieves the bits fo the specified compatible
bitmap and copies them into a buffer as a DIB using the specified
format.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>hdc</CODE> - A handle to the device context.<DD><CODE>hbmp</CODE> - A handle to the bitmap. This must be a compatible bitmap
(DDB).<DD><CODE>uStartScan</CODE> - The first scan line to retrieve<DD><CODE>cScanLines</CODE> - The number of scan lines to retrieve.<DD><CODE>lpvBits</CODE> - A pointer to a buffer to receive the bitmap data. If
this parameter is <code>null</code>, the function passes the dimensions
and format of the bitmap to the <A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFO.html" title="class in com.sun.jna.platform.win32"><CODE>WinGDI.BITMAPINFO</CODE></A> structure pointed to
by the <i>lpbi</i> parameter.<DD><CODE>lpbi</CODE> - A pointer to a <A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFO.html" title="class in com.sun.jna.platform.win32"><CODE>WinGDI.BITMAPINFO</CODE></A> structure that specifies
the desired format for the DIB data.<DD><CODE>uUsage</CODE> - The format of the bmiColors member of the <A HREF="../../../../../com/sun/jna/platform/win32/WinGDI.BITMAPINFO.html" title="class in com.sun.jna.platform.win32"><CODE>WinGDI.BITMAPINFO</CODE></A> structure.</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
<b>JNA API</><font size="-1"> 3.3.0</font></EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../com/sun/jna/platform/win32/DsGetDC.PDS_DOMAIN_TRUSTS.ByReference.html" title="class in com.sun.jna.platform.win32"><B>PREV CLASS</B></A>
<A HREF="../../../../../com/sun/jna/platform/win32/Guid.html" title="interface in com.sun.jna.platform.win32"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../../index.html?com/sun/jna/platform/win32/GDI32.html" target="_top"><B>FRAMES</B></A>
<A HREF="GDI32.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
<center><i>Copyright © 2007-2010 Timothy Wall. All Rights Reserved.</i></center>
</BODY>
</HTML>