from 28 gdi · [email protected] ˝ ˛˚ ˘ ˇˆ˙ 43 & b ˝n o ˆ’ s ˙ ˝ ˛˚ 1 j˛...
TRANSCRIPT
![Page 1: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/1.jpg)
������GDI ������� �� 28 from ��
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�
���
�
��� !�"#���$%�&������'(�)*��+��,-".� geming���/0�"1���2334��$%�&������'56��'/��0��'�7�8����������
�9��:�;����7�'�<�'/7"����'/��=<��>�
![Page 2: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/2.jpg)
������GDI ������� �� 28 from ��
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�
������������
���� �������������������������������� �!��"�#$�%����&'��()*���������+,�- ��.�
��
����/0����1/�2%�+,�- ���()������������34����56�7�8����29��.����56�7�8��9:9��.��
��������;����������<�=���� �6�7�8����2>���9:>�����2>��??????????????�
6�7�8����2>��������@�A�&�B���@�C,��A�DE��A�F��������G�����H�%IE �@�/�8�1JE�K�7� �L�M����� .�
���
��
�&�B�����NO��������'�34��6�7�8��9:>������@�A�&�B��G�(9:9�����H�%IE �@�/�8�1JE�@�C,��H�L�M����� �-����
K�7� �P�7� �.��
�
�
![Page 3: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/3.jpg)
������GDI ������� �� 28 from Q�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�&�B�����NO��������'�34���
��������������+��J ��%���('�R�+��0��0����&�H/�������������-��*�7��@����������������*A��������������� �1J���S����6�7�8��9:>����T�U����� �6�7�8����2>��1J�����T�U������VO���+��0�W�".�
�GDI�� Graphics Device Interface�
�N�O��� �X�B��E�Y���� �6�7�8�(���2>��-���J�����T�U�������� �
�&�Z=������6����[ E���E����*A�\�]�R� ��H"�R�!�J���.�^�H����*A�#�Z2�*��_��YG�8 ���/���L���=��V��D6�����������D��.�
�DIRECTX�������
������������� ������ ��� �����������������&�����+��J ��%����H*�7��+��0�������������-��*�A��������� ��*A�&�H/�� 6�7�8��9:9� �6�7�8����29������� �'�]�J�������.�
���������������������������������������%�&��F�����������*A���E 6� ��H*�A��Z��%�8�`'�+'�%���(���������V��&��7���������������������������-�T�-E�'������J�Y����*T����DaH�8�&'���b������������G�Z��-�9c�������d�����R�R�-E�' �
b�������d�-������� �[ ��� �6E��%��� ...........e�����������������������������@��G� ���*A�#�����H��f�J�-6E�;�������D���������������A�DE��A��H��g^�H���*A��H��Z2
��������������������L�L��h�� �-�=*�����A�����bDll�d���������������������������/� � �+,�- �� �L:U�����H��f�J��2��%�[:��[:���/�� ��E�R.�
��U�Y�Z,����L�0� �6 �1%���34�8 �h�h6�����@�f�J�1*7�G� �&�0�`'�+'�%���1*7G������=G8�
����������������������������������������������G�%���H������ ���H�G����_��Y% ��%�������*7G�������P����`'�+'�%��� 8�h�h6�����(�����@�f�J8���*7G�L:U.�
������������U�1��A�`'�+'�%����������h�C,�(H� �������������@�f�/%8���� ������������ �PY�/%�:��`'�+'�%������������������- 6� �i���� 6�/=,�^�H���V��&��7������N�/G�`'�+'�%��� 8����������� ��%
�M�J �.����������
![Page 4: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/4.jpg)
������GDI ������� �� 28 from j�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�<���?)��@���'��%���*�A?�B�
��
C> �:"�����D�)�E<�@Width & Height�F�BG��� ����A�DE��A�������6�7�VkG����2A�:>����E^�Button���������������G������� ���@E�=���*A��%���
i��,����&�)BG�]�29�����)G��2��%���'�1��Z���]�29�����)G��2��%�6�7� �-�J�������.���
�
�&/�������K�7� �l�=GE8�[��0�m�" �.�������DE�Z�������'�34�2> ��H�����I8��@PositionB�F�G��
�����������������������(R�R��*A�6��������'�&���������������������������� �% �Y*���/2����V0������� �'�]�J�V0������G
������������������������������������L:U� ��������6����L:U����V0��������%�YG��2��% �R�B*����"����(*"�����1��ZG�����,��.�
���!�7%����P%�n��A�-�2�����V0����%�YG�1�% bPoint �d�����������bPoint���d��������������������������*A�D6�����M�,��A�DE��A����������H�9�"��H������� �h6�Z�� ��2�/�8
����������������������������������������*A�V0�����%�YG��H�:U�����2��%�F������ �M�,��H,8�D6�������7�����H�%IE��2��%��R�B���>'���8����Nk�%�!�J �������DE�Z���C,�34�
�
![Page 5: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/5.jpg)
������GDI ������� �� 28 from o�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
����
��������������������������������������A�DE��A��,���*�� �*����,�*����� ������&'� ���DE�Z�����NO ������' �bPoint��d
����7�����*��������������������������������������������Da'����@E�=�� 8���; �66aG��H���0� ���G�@E�=��E�/%��*A��A�M�2��-��@E�=��E�/%��*A��M�,���Z0����@E�=��a'������ ��FJ������`��.�
��+2%��*�����J�1�0����G�:�bPoint�d��M�2���9�"� :>�%� ����0���+2%�����bPoint�d�
�����X A�+2%�����9�"��� ���DE�Z�������'��2�/��E�Y����*b��"8�1H/�d������Y �DE�Z�������'�h6�Z��E�Y����*A�+2%�����9�"��� ��b���"8�1H/�d�
��������������������������������������_E�U�70��� ��%�+2%���� ������J���0�h6�Z� ��2�/���9�"8����h�(��0�+,�'�; �H*U6�`�� �% �Y��.��
���������������]�R� ��,�>��]a������ ����������������������������&7� �@E�=���9�"����)G�(�=�'��*A�!�7�2J����������\����#$�G� ����h� �FJ������Da'��.�
����JG��K���<�@Color�F�BG��
���������������������������������������������� �h�h6�����@�f�J���+,�- ������1J�������J�J8�-�,�����h�"���� ��8\�]�R� �������[ E������&�Z=������H2A�p�YG�!�J.�
E���U8� ���%�n�+,�- ����=��� ��8�34��
![Page 6: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/6.jpg)
������GDI ������� �� 28 from q�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
CG �<��' �"A���F�����(�%�n��� RGB ���E�Z�U���� ���
Red �������"�Green ������kU
Blue �����<E^
rrrr�9:>�� ��8�;���������������������������������������� ��8��%��G������H2���F*f��L:U�����2��%���*� ��J�J8� ��8����D���1%�����U
8�h�U�S�2�*� �!��� �6�J8 �s��8�&>����h ��/� �........................................e���
�������������������������������H2��&���D]�O8�-��E6����)G� ����7G�L:U������; �S�����������R�B���*A����t������&���D���9:>�� ��8�F�*U��A�DE��A� ������ 8������.�
�&�Z=�������7�J����� �\�]�R� �������[ E�����.�2�G'/��L���' �"A�����:�
�V���J�J�D6������� ���H2%��G�����2��&U�G� ������/��D6������ ��8�E���U��� �+,�- ��.�
J> �M�����"/N�����F����7G�1�� �@�7����)�������������!�7G��,����A?????????????????????????�
������������=G8��,������@�f�JGDI�����������������������������- ���()��@�f�J �-��)����V��&��7������G�+2'�;�8���+,���.������������������������������������� �&�0�F���D�,� �-6E���, �X�B��L����`����H��-��)����X�R����<�MG��*�
���������������������������������������������������*7�� �E6�Z���h�"����-��)��� �V��&��7�� �(�=�'��*A�8 �!�7�G� ��27��u��G�h�U8.�
�������������������
![Page 7: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/7.jpg)
������GDI ������� �� 28 from v�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
��L����?)�� �������������� ���="����
�����1J�*��������6�'�L �(���'������,� �&�0L�>������u��G� �#�%�+,�-��u�8 .���������������������������������������������������������1��A�_E�U� 8�ga�'�G� ��%� �L �"��27��� 8����������g���=G�w��
�@�A�&�B���G������� �S����������a'E ���� ��F���u�0 Du��G.��8 ��G����������1J�G���� 8��,8[ ����S��<E����*A��7��1J�G�!�J� 8�+,�.�
��������,��'c������������������������������JE6�]�29��J�2��&�R��1J���+�0�����&�0����<E����*A�1J�����+�0��S�h��G��%E�'�&�R�1J���+�0��,� .......e��
�����������������J�G�+2' �:>���J�2��&�R�1J�G�+2'��,�K��=2����������������������"� �JE����L��B'��������T�f��D�2�8.��
�������������������������������������������T�f� �@:08�aH��� �+2'�1J�G���&�0 ��7�n �L�>�� �&��J��*A�D�� 6 �1J��� �+2'�+,�������:>��V��E�1*0�1J�������������������������������1J����%�*G����#$�G �;�1J�����+�0�����:�*0�C�*$�[E� ;�1*0�
�*�*��x�=��E��fG � ��8�(�*A�N�=��@������%�����H��-a�,�+,�����
D�����1JE��� ��*M����&�B�� �.��+,�- ������1J����2A�F�k����*7=�J������S���Nk�%�L�>���L:U�����
��*%���34��4 �0E����*A�1J�G�!�J��,.��4 0E����*A��H��1J�G�!�J�����@:08�-6�"��,.
Q4 0E����*A��J���@��G�!�J�h���&�B��-6�".
j4 ��%�*���.
�����������������������������������������H��@��%�1���2���� ����h6�A�L�>�����@:�����������7T�h���G�1�� 8������,����A�&�0����&�7�.�
���������������+,�- �������7��V�E� 8������������������������� ��%�!�J�,8�L�>���m]�0��������-a'E��,�]�R�1� �������@�f�J������� �A��+��J ��%���bGDI And Directxd�
���H��-�������D���@�f�J8��/�����D�A�������L�>�.��6�'�L �(���'������, ���������1��A�����Y�,� 8��2A6.�
�������
����������������������������������������������������
![Page 8: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/8.jpg)
������GDI ������� �� 28 from y�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
������� ���="����
�������������������������������������7��P��/��L�>���P�M,� ��%�,� 8 ��P��/��L�>���-�0�����1%�����U������*A�`������ ��6�'8�����, �<E���
6�'8�(���' ����,�� �L:U����1J�����@��%��G��������l�2*��34���8 34��NMJ8��%�YG3���,�93�4�1J���3�4�
�+,�- ���(������()�������G�z���-���J���l�,u�.��>��9�34�x�=� �@:0:���%�YG�b+,�- ������L��R8�1JE�<�n3d��
4��@:08�l�,�bPen d��4��x�=��l�,�bBrush d��
��
�<�FGOA=<���*���
����������������������������������������������H�*A� ����1J��J�h�*��L��B��� �0E����%�YG�������M�,�L � ���,�L�>����=�
��2%������ ��*A�1J�2��<E ��2%���`��� 8 3�Desktop�Screen
Form�Button
List Box�Picture Box
Textbox
Image
........Etc��
��LcJ��2�;����E6���%���� ��H�*A�1J����2��%�����NMJ8��*A�+��7G�����1%�����U
rrrrrrr��H�*A�1J������%�{�' �NMJ8�D������L�T������%�{�'��� ����E6���%�Lc/������ �1*A��,� 8��2�;�.�
�10E�����R�R��*A� 8�D�G����'�h� �R�B���*A�6��������'�&���7��&��7�*���%��!�7%������ �^ �2%���@�C,�L:U���� �����,���L:U����]�J�P1 ���7@Handled�
�������6����L:U�������'�h�s�������L�T���������G�+,�- ���()� �34��
![Page 9: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/9.jpg)
������GDI ������� �� 28 from |�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
Form1.Handle
�� �����*����0E���0��M7%�[:'�b@E�=�d��7��&��7�� �^ �2% �@�C2�����6������U����'�h�s�����%�YG��2��%���'.�
�*A�1J��J�h���NM/���%�YG��2��%� 8 ����*HJ��*�7����;��������������@�}}0}}���}}"�}}h}}�}}h}}6���}}�}}�(���}}���}}�}}�}}L�T�}}�}}�(�=�}}'�}}!�}}A}}�}}8�}} }}8}}��}}�}}��}},}}���}}�}} �
rrrrrrrrrrr1J����L:U����h�h6�����(��������&ZG� ����%34�
System. Drawing�
�@�A���)���{%�7���10� 8�1J��Gra ��*A�1J��J�h���NM/����� ��%���"�34��Public Gra As System.Drawing.Graphics
����������������������������������������������h�� ������ ���6�YG� �#�%���� ���� ����l�2� ������)���~�Zf���+�0� 8�+,
����#$�G�@E�=��:>������ ��*A�1J����������6����L:U������; �34��
Public Gra As System.Drawing.Graphics = Gra.Fromhwnd(Me.Handle)
����������������������������������������G6�"�h���@E�=���� ���H�*A�1J��J�����0E����%���N�T� 8�+,��1%�����U����2�����������E^��*A�1J����k%��2��% Button �����*A�#�%��'8 �������������������(���'�19�@E�=���*A�8 ��E6���
�6�������34��Public Gra As System.Drawing.Graphics = Gra.Fromhwnd(Button1.Handle)
��*A�1J�*��@E�=���*A�NMJ�����>'�a�"��2��%.�������������������
![Page 10: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/10.jpg)
������GDI ������� �� 28 from ���
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
��/��Q�F��="����
��������������������%�7� �+,�- �� ��� ����G�����������������������G ��*A�g�A�/G���� �-���J�� ��������������� ����� ��� ��*�A�@����&>��G�-���J���D�� ����J���34��
�R�S/7���.�T�U"H�V�Ellipse�
I7"�����/A�6��Rectangle� �*���Curve�W�8�Arc�
�/ �6��X� Line
I�S����. Polygon
YE�� Image
��7��-���Z�?��String
�&��7���(�=�' �L��R8�D���1JE�6�'����&ZG�{�'� 8 �H���"���)G ��H7��3��
��4 �R�S/7���.�T�U"H�VF�
���������l�2�������)���a�Y��10b�1J���NMJ�d�
Public Gra As System.Drawing.Graphics = Gra.Fromhwnd(Me.Handle)
�p�Y��������� �p�"�h�����6�������(������10bPaint�d�L�>���&��J���*A�@E�=*�3��
Gra.Drawellipse(Pens.Blue, 0, 0, 120, 120)
�����������������X��=���*A�F)k����i��,����&)R� 8 F5 �����������������������*A�1J���1G��0�@E�=�� �h��J��6E��%�������<E^8� �*�����D��������@�J����&�B� ��1J��� ���� � ��
��9�"8b�S��d�1J���NMJ���b@E�=��d��K�A �L�n�D�����1�"� b���S����d6���������'�.�
�� t�Y*�34��
�������'��2AGra.�L���G� ��2���%E� 8 �NM/���*A�1J���-����k��h��J�- ����7���P�J���� �+,�- �����������G�����L��R8�h�G �
���';�����Gra.Drawellipse�
�D�����1JE� �h��J�-����k=��D�H������G��2A bEllipse��d�&�B���H����G���E�'��3�Gra.Drawellipse�
Gra.Fillellipse���������1JE��27G��� 8�����L��R8����NM/���*A�Gra �����w�=���&�B��������������1J���P��/��L�>��������'�
D����bDrawd�.�
![Page 11: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/11.jpg)
������GDI ������� �� 28 from ���
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�1JE��27����,�>����L��R8�NM/���*A�Gra ����*���(�%�M��bFilld�.���������[ E������&�Z=�������H�*A�!�7�,�!�J� ���%�M�� �G�� bW��>��&Z=�d�
���������������������������h �k���&�R�1JE����+�$E�;��,����g�C,�+=�� ��%E�����`=,�@�f/�J��,������1JE�6�'K�A���� �D�����D�����L�n�V��h �/�%�8�6�������D������������6���������'��3�
���
)80, 120, 0, 0, Blue.Pens(Drawellipse.Gra��
�4 ����/A�6���I7"����@RectangleB �
��������������������������&�M�/��1J�G�!�J��,��� 8����D�����1JE�6�'��*A�����+��7G �D��6�1J�G�{�'�+�*7G�����b(Rectangle��
����������������&�M�/�� � �����!�7G�+,������������������������&�M�/�� ��7*O�h �/G ��*����% �/�����$���7*O���� ���% �L�Y���&�M�/����V�������.��
�&�M�/���1JE�6�'�h�2*�3�7�n��*A�1J��J�h���NM/���%�YG����D�MU�L ��3�
�Public Gra As Graphics = Gra.Fromhwnd(Me.Handle)
�
��������������������������������������G����%������� �1J���]���p�"� �������1J���6�'�(���'����D�MU��,�G �bButton�d���*A6�������#�' �L�>���&��J�:>���G�����*A�F)k��p�"�����
�
Gra.Fillrectangle(Brushes.Black, 0, 0, 100, 200)��D�����1JE�6�'�����*A�+��7G�+,�6�����H��6����X�R��%�G�8��,����A������
����������������������������������1*�����1J����%�Y���+�0�D�����1JE��6�'���� ��� �!:�U����%���� �bDraw�����d����������2��������������������������1J���(�%�n� ���&�M�/���1JE��*�bBrush���d�.���������(�=�'��*A�!�7�G�!�J �������D���@�f�J
<�M�\� ;���������[ E�������.�Q4 ��=E�8�W@ArcB�
�[�0��1JE�(�=�'�1*7�,�!�J��G�U� 8��
��D�����`�����, ��H2��]a�� �D��6�{Z,����[���� �����1*7G�+,��S�[�0�1J���6�'� 8������NM/���*AGra ��9�"8�����b�S��d�NM/����.�
�h �/%�[����K�A ��l�=GE b���S����d�<E�=��h����1����D������)G��2��% ���������������������������������������������������������������������������������������������������������������������K�7� ��l�=GE8�(��0���9�G .��
���� Gra.Drawarc(Pens.Black, 0, 0, 200, 200, 360, 180)�
������1�������y��� �Qq�������������������������������������(M�,����[��*��M�,�L ����[���� E 6�(�E6� :>�%� ����0���H���[����(%�H,.�
�������������������������������������6�{Z,�&�R��U�%�[���� �h�G�6�����H�� 8�i��,����+�����*�������������1�0� 8�D�� �����G�D������ E ��Qq�� ��y�.��
��/=2��<E�=���*A�!�7G �1����D������)G ��%������6����(���'��2��%.�
![Page 12: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/12.jpg)
������GDI ������� �� 28 from ���
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�h �/%� E �������0�+,�'�;���bQq�SQq��d�[�0�`�� �D��6�N�Z%�[�����.��
[G � �*������=E@CurveB
����&HJ�`��%�R���7�����Y���������2Y2���1JE??��????????????%�R�-a'E�������%�J�1J�2J� 8��2Y2������L�>����������7��a'E�+,�- ���`�� �<E����*A�3�
����
�DE�Z��D�������C2G����2A�&HJ�&�B��1H=G����J� 8��,�hE��,.��h�G�;��3�
� �s��8� �*�����2Y2��h�G��,�� ��2Y2����*A�V�G�]�=T����,�h�G��,�� G��,�h6�T��9�" ��2�J��9�"�h��
�������8�+�H=G��,����A��&�7���H��@������2��%�{�'� 8 3�
rrrrrrr����2��D����*A��2Y2���1JE�6�' ����2��VO �6�'�#��G�{�'������������������+2%������!�7%������%�+,�- ���()�����bPoint���d����������';���' �M�2���27%��� �������������������(%������-���������������������� ��9�"��H��+2%���� �L 8�&Z=��b��2�J���S��h6�T�d������������������������M�2��V0���6�Y%�h�������9�"8��� �
�*A�1J�G�h���NM/���*A�.���+,�- ������M�,��B2G�{�'�
�����+2%���l�2�������)���a�YG� �#�%bPoint.�d��
Dim Po1 as New Pointf (500, 300)�@��G����2A���)����a�Y��Point �+2%���������A�,��*A�h��Y%�[:��� ���G��
Point�Pointf�
![Page 13: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/13.jpg)
������GDI ������� �� 28 from �Q�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�����������������������������������������������1�%����2�������=Z���A�DE��A��H���,�>�����D�" �M�,��A�DE��A��� 8� ������H2���<�=� ��2Y2���1JE�6�'�(���'��2A� 8�<�=��!�7�J ���a�".�
�������������������9�"� �h�G�+2%����{%�7G�6�'��=��������M�2���bo��SQ�����d�������������9�"8������ �b��[���S�����d����'��2Y2���1J���NO����&�B����.�
��2Y2����H�*A�V�%��������2������%�7����G��2Y2���1J����Y�O����&�B���� �����,�m�A�Vk2*��F����" �M�,�VO����=��,�8� 83�
�
Dim Po1 As New Point(500, 300)
Dim Po2 As New Point(600, 800)
Dim Po3 As New Point(200, 100)
Dim Po4 As New Point(100, 300)
Dim Po5 As New Point(550, 300)
Dim Po6 As New Point(501, 200)
Dim Po7 As New Point(510, 100)�
�������������������������������������������� ��2Y2���1JE�6�'�#��,� 8��2A6���2Y2����H�*A�V�%��������2� ��%�Y���+�0����� 8�h�2
�������������������������������������!�7�2J���� �1J������L��f� ��Y/������%�7���2�*A��=f%�h�� �6�������(��HJ �(n�/������������,�>��]a�������H�*A�b�-����MGGDI�d��\� ;���3�
� Dim Curvepoints As Pointf() = {Po1, Po2, Po3, Po4, Po5, Po6, Po7}
Gra.Drawcurve(Pens.Blue, Curvepoints)
����������������)���a�"��A�DE��A�L 8��M/��bCurvepoints�d��������������������2��(A�����h��Y%�����+2%����l�2�������H=%�7���+�0�����7�/�.�
�������������������������������������������*A���&����*�Z=G�X�B��_��Y%�8��,�>���M/�� ����A��2Y2���1JE�6�'�����,�>���M/� ����������������1J����%�YG����6����������*7��b���2Y2����d�������2Y2��� �� �b��Pens.Blue���d������������������2��(��=Z�
��2Y2���1J����HGa�"�.�������������������HJ�&������������������������������������������������������������������������������������������������������
�����������������������������G����MG�L:U�����H��7�J ��%a�������%�7��=*U��=f%�+*0���'�6�������`������������+,�- ������h�h6.�
�o4 �/ �6��X���=E@Line �F�B��
�1J���(��������D�'����&HJ���=���%�H, �%������M�,��A�DE��A�1���/���Ff�b�Points�d��9�"���+2%���&' �b�[S���d�
������������������������������/% ���H/� �1���/���Ff��1J��J� 8��,��2Y2���1J�����*7G��7�����A���S�����������1JE�6�'������ ��1���/���Ff�3�
�Gra.Drawline(Pens.Blue, X1, Y1, X2, Y2)�Gra.Drawline(Pens.Blue, 20, 20, 200, 20)�
![Page 14: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/14.jpg)
������GDI ������� �� 28 from �j�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�����������0�-6^���*'�bX2 , Y2�����d����1�����A�bX1 , Y1���d��������������������D6�%a��E����`=2��1���/���Ff��L�n�6^���*'��,�>��1������.�
�h����D���&'����1����D������)G�L �" �6���������<E�=�.��q�4�V*k���&�B��bPolygond��
�A:O�6�A�6�Y����$ �l:O8�h �/�����$��J�2��&�R�h��A�DE��A�V*k���&�B��
��
���������������������������������[ I��������7��6�A��*A�h��Y%8�V*k���&�B���������DE�Z�������'�V*k���&�B�.�
�[ I E�(7�E���� ���%� 8������h�*��&�B���b�F�,d�J�G�{�'rrrrrrrr�V*k���&�B��1�
������������������������������������'�V*k���[ IE����[E�&'��H�*A�V�%�����F�2��6�YG��,������*A����&'����&HJ�DE�Z�.�
�DE�Z�������'�V*k���&�B��1J���������L�>����7��V��G3�• 8 �3��V*k���[ IE� �F�,��%�YG���*A�#�%�
Dim P1 As New Point(100, 200)
Dim P2 As New Point(120, 240)
Dim P3 As New Point(200, 100)
��Dim P4 As New Point(100, 150)����������������������������������������������������[ I ����m6�%^�+,�-6E�; �F�,�(7�E� �[ I E�(7�E�-��U��,�L�>��������
����%�G�����M�2������)���a�Y����*A�F�2�� �/�����2��a�"�(�%�n�`=2�����.�• ��,�9�3���HG6�"�����[I ��� �F�2��(��=Z��&�Y%���)���]�B,�
Dim Pof As Pointf() = {P1, P2, P3, P4}
• �>��9�3���HG��U�����F�2��� �G6�"�h���NM/���*A�V*k���1JE�Gra.Fillpolygon_
(Brushes.Blue, _
Pof, _
Drawing2D.Fillmode.Alternate)
E��A�L 8��M/��NM/���*A�V*k���1JE��A�DbGra�d����/��Da�Y��+�0�h��.��D�R�=�� ����A�DE��A��,�>���M/��b<E^8�d��*��� ��� .�
![Page 15: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/15.jpg)
������GDI ������� �� 28 from �o�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�V*k����H��1J�,�����F�2��(��=Z���A�DE��A�W��>���M/�����������������������������������������1JE��� �V*k���1J�������%�n����G �V*k���1JE�@�C,��A�DE��A��� �V�����M/�
��V*k�����Y���V*k���,�>� �#�����V*k��@�C2��1J���6���������G���"�<E�=���*A�!�7��J .�
�i��,����&)R � 8����.��
v�4�������� ���Z2��1JEbSTRINGd��2�7�����'� �~,�1J�,�;����L�/�G ���Z2��1JE��A� 8�#�7�G�+,�
������,�>��]a���L:U�����%a����*A�!�7�G�!�J��������b�h�h6�����-����MGd�.������� ���Z2��1JE�@�f�/G :>��D�M/��_E�G�]�B,����-�
���;���$� �A�J�@�0E� ���������Z2��1JE�(�=�'��*A�!�7�,� 8 .�
������������������������������Ff��1�"�E��fG� �#�%���8�#J�Y��L:U�������G�~,�h�bSIZE�d����������Ff��l�, bFONTd� �*� �bCOLOR�.�d�
&�������� �*� �l�2� �1�Y��6�YG� �#�%�~2��1J�G� �������9c�� ��bBOLD , ITALIC ,
UNDERLINE d���l�2�������)���a�Y����; FU3��
�Dim F As New Font _
("Times New Roman", _
10, _
Fontstyle.Bold, _
Graphicsunit.Millimeter, _
1)
�J �FU�l�2�������)����a�"����L 8��M/���bFd�
��%���^�H�����6����� ��%� �#�% �Ff��1J��A�DE��A��,�>���M/���D�BA��� �Ff��1�"��A�DE��A�W��>���M/�b��d�
��HY�O����_��YG�8 ��H��7G�+,�����Mf���*A�-�9c����A�DE��A�� �V�����M/�.�����������������������������������������E��fG� �&k�8 �R�B*���/2����Ff��1�"�[��0�m�" ��� �[6�/� �`��f���M/�
�������**����bMillimeter�d������������������������������������D���-�"����*A�!�7�,�!�J ��J�J8�D�"����\�]�R� �[ E�����.�
�]�BG���'���Z2��1JE��2��%� 83� Gra.Drawstring("Alaa Gomaa", F, Brushes.Blue, 100, 100)
�Gra.Drawstring( _
"Alaa Gomaa" _
, F, _
Brushes.Blue _
, 100, 100)
![Page 16: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/16.jpg)
������GDI ������� �� 28 from �q�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
Drawstring �1J���l�, ��*A�1J��J�h���NM/�����L 8��M/�b���Z,�1JEd
�]�BG���#�'��JE��%�G�h���~2���H���,�>���M/��.�������������������������������JE��%�G�h�� �Ff� �~��ZU�DE��A�W��>� ��M/� ����������������l�2� ������)���-a�"���� ��
bFont.�d���JE��%�G�h���Ff�� ������V�����M/�b<E^8�d�
��A�DE��A��H����U8��M/����V0���NM/���*A�Ff���.����Z2��1J���+�0�+,�����.�i��,��������
y�5�1J����E�Z�bImaged�=�'��*A�!�7�2J� 8��7��V��G��D�%�Y���@��G�NMJ�h��*A�DE�Z��1JE�(��
�������L�>��3����8 ������������DE�T�l�2�������)���a�"���*A�#�%��bImage Or Bitmap ���d�������������)������
����������������������������������������-��*�7��D���&>��G �NM/���*A�O�A� ��JE�19��*A�-��*�7��s7���@��G�h���DE�Z�� ������)G� ��DE�Z*�� E 6�&�A�:>��
��H�*A�-�9c���s7��&�A� .����)����a�"�1�%Bit ������'��3��
Dim Bit As New Bitmap("E:\7.Jpg"��^�H������DE�Z��E�/��&�Y%���)������b��/%6�6E�H���*A�d�
��,�9�������'�1J���(�*�A�1�G��3� Gra.Drawimage(Bit, 0, 0, Bit.Width, Bit.Height)
� Gra.Drawimage(Bit, _
0, 0, _
Bit.Width, Bit.Height)
����������������������������������������������[�����7� �DE�Z��1JE�l�2������*A�1J���E���U �NM/���%�YG����L 8��M/��l�2�����Da�"�P�J�h���DE�Z��1J�&�Y%�h�����)����1J�#��, Bitmap.��
�"�NM/���*A�DE�Z��V0��� :>�% ��%��)���&�Y%��,�>���M/��6V0���������J�2��D�G�h����.��K�A �L�n����NM/���*A�DE�Z��1�"��A�DE��A��H��W��>���M/�����
����#J�2���10���#�'��K�7� �L�M�����DE�Z*���*T8�1�Y��-��U��,�L�>����=�.�
���� ����������������������������������� �(�%�M� �NM/� ��*A �DE�Z� �1J�� �+�0 �+, ���������������� �i��%8 �(�%�n��� �����&�A��������������������������������������������,�>��]a������\�]�R� � ���J��H��DE�Z���*A�-�9c���b���������-����MG
h�h6d�.�������������������������������������������������*A�DE�Z��1JE�&�0�������6����#��G� �#����DE�Z*�� E 6�&�7��@��G� �-E�;
�NM/�3�Bit.Rotateflip(Rotatefliptype.Rotate270FlipXY)�
�� ������������������������������ ��2��% �`�7�� �A�/���E��A�D��G��� E 6�]�J� E �*��D�%�A�l�,�6��������
�D�%�G� E ������l�,�h�E��fG �6�������G.��
![Page 17: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/17.jpg)
������GDI ������� �� 28 from �v�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�- ����2�������G�����-���J���1C7���*A�!�7���������'��n�R��27M0��0��,�U�����:>���H2��&�*������%���� �+,3�
�Pie��-;�D��6~0�,�VM���
Bezier��2Y2���Icon�,��%�
Closed Curve�P*)���2Y2����H�*7��J ��X�R� ����H�*A�!�7��J��H���-������ ����M�/���� ����&��22J� 8���
��� �-���J������1�8�]a��3����������������������������
![Page 18: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/18.jpg)
������GDI ������� �� 28 from �y�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�L��QF�G�\")���M�8<���*����
�R�=������<�=������rrr�1*�� �D�F����1J��� ����������@�f�/%�1*��b�Draw �d��
+0���`=,�����%�*�� �1J�*���@�f�/���D�R�=����b�Filld�]�*��� ��rrrrrrrr���;�{�'�
�������������������������������D�R���l�2������U���)�� �1*0�l�2�����@�A���)���a�"���*A�#�%����������@�f�J8�&�0�S��*A�1J��������H��f�J8���; ���Da�"�P��/��NM/���&�B���H��6����N�Z����34��
� Public Gra As System.Drawing.Graphics = Gra.Fromhwnd(Me.Handle)
Public Pen As New System.Drawing.Pen(Color.Darkblue, 2)
Public Brush As New System.Drawing.Solidbrush(Color.Black)
�����������9�����,������N�T� 8������������J�J ���A�-��)���(9:���S����������������6�����*A����/��+��7G�+,���L 8��M/��b�NM/������)���a�"�d��
�����������������������������������������1J������@�f�/%�!�J�h�� �1*0�l�2�������)���a�"��� ��,�>���M/�����6������
�-��M7������ �29���1*�����)���� ���G�!�J����6��*�������'��2A ���� �L 8 ���&>�%���1J��J�h���1*����
�����������������1*�����J�[��% �1*�����J�&>�%��� ��,�>� ��&/����������������������1*�����J��,6�"�L�>����������2� �����&/�����.�
�
��������������������������D�R���l�2�������)���a�Y���2�0�����W��>���M/�����6��������������������� �*��%6�A�D�R����� bSolid Brushd�9��D���T�U�]\")������ 1��H�� ��D�R�=�� ����� ��" ���)��
��%�*�� �1J�*��6�J8� �*��-��U��0 �.�������������
![Page 19: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/19.jpg)
������GDI ������� �� 28 from �|�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�TG�D���T�\")����
C> Hatch Brush�2> Brush entGradi Linear�J> Brush Gradient Path�[> Solid Brush�^> Texture Brush�
���H��f�J �x�=��D���V��&��7���(�=�'3�
�C> Hatch Brush � ��="�����������U�."��
��������������������������()�������G�����x�=��l�,�h�"��� �������������������*A�D�R�=��D���h��YG �+,�- �������%�7�����
L��R����Ua��u�&ZG������>'u��/�U�����&�R�����������E�Z�������'�.��
��
8u�1JE�(�*�A�L ����@��,��34���
��D�%�YG �NM/��{%�7���10�3 Public Gra As System.Drawing.Graphics = Gra.Fromhwnd(Me.Handle)
���H*�R �D�R�=��{%�7���10�3��
Public Bru As New_
System.Drawing.Drawing2D.Hatchbrush(Drawing2D.Hatchstyle.Widedownwarddiagona
l, Color.Indianred, Color.Aquamarine)
![Page 20: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/20.jpg)
������GDI ������� �� 28 from ���
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�-��M7��(9:9���G�6��������� 3���������������������������������Ua��l�,��A�DE��A��� ��=T8� �*���� �L 8��������������L:U��� ��H��1J���#$�G�
���������U8��2��%��M7����������������������������G�������Ua���L��R8��������E�����b��������>'�U�&�R���/�d�
����������������������������������������������W��>� ��M7������E��f��� �*� �V��Vn������&�B�� ���E���U��H���,�>� ��M7�����.��������()����������G����� ��8��"�E���U��2��% �.�
�P��M����7��8�#A��/G�����,����A���10'�(������1JE�6�L�>���&��J��*A�D��6��:>���G�����*A�F)k��p�"����3��
v������q���o���j������Q���������������������������Gra.Fillellipse(Bru, 0, 0, 200, 200)
��U��1%����+,u� 8u7�J��%���(�]a�u�z��1H�*A�!�7������#$�G �6����3�
���5�Gra ���*A�1J��J�h���NM/���� ��D����=%�7G�1G���� ���/�����5��JE����#$�G�h���1J����� �+,�- ���������()�����D���G���� .����
������,��":G �z������������(��O�1G���29�10E�VM�����bFill �����d��������������(�%�M��1��J�1J��� ��*A�L������ �@�f�J���]�*���b�Brush.�d��
��u�+,�'����bDraw �d��D�R�=��`�� �1J������1*���@�f/�J��,���.�Q��5���������������������������������������� ��8���� ���E���U��2��%��M7�������� ��H��1J��J�����D�R�=���%�YG��� �
�����������������+,�- �����D6�������O���8���S�������������������a�Y��+�0���� �����J�2���D�R�=��E���U��2��%���'Z��Zf��@�A���)���H�bBrush��d.�
j��5�������������*}}A�1J�}}�}}��V}}0�}}���}}%�Y�}}��}} �Z�f}}%�}} }}�*}}�}}���}}�}} �`}}��f}}�}}}} �V}}�}}�}}�}}�}} �}}�a�}}�}}�NM/�bPositiond��JE�V��#J�2�%�����1����D������)G��2��% �.���
o�5����������%�Y��� �Z�f%� �*����� �V��/� �[6�/�� ��a�����1�"�������m�������� u��������6�7���������J���u��K�A� �l�=GE���X , Y ������ :>�%���� ������L�>����������
b����S����d�<�=��!�7���������)G��2��% ��.��]�*���(�%�M��1J����2��%�1%�����U� 8bFill �d�� �m�R�=�bBrushd��
��2 . shLinear Gradient Bru�� A5�����������U�."���
��������������������������������������������1J����*���@��G�D�R����� ��������*��+,�- ��������G�����1J���x���h�"��� ��MU�&�R�������*U������,�*��.*�B�������'������������
�
![Page 21: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/21.jpg)
������GDI ������� �� 28 from ���
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
��
�������L�>���L:U�������Nk�%���;�rrrrrr�+,�- ������ ��8�D�H��1J�G�{�'3�• 8 3������������@��,� �#�%��,6�7G���'�1J�,�h���NM/��{%�7G� �~�Zf���*A�����������������
Public Gra As Graphics = Gra.Fromhwnd(Me.Handle)�
• ��,�9�3��������l�2������� ��H��1J����%�,�����D�R�=��E���U���@��,� �#�%Linear Gradient�
�R���l�2�������)���a�Y����; �D6�Z����D�R�=��l�,�~Zf, �D�Dim Bru As New _
System.Drawing.Drawing2D.Lineargradientbrush( _
New Pointf(0, 10), _
New Pointf(10, 20), _�
��Color.Black,
Color.Azure)�o �D�R�=��1J��A�DE��A�L 8��M/��o �D�R�=��l�,��A�DE��A��,�>���M/�Linear Gradient�
o ��M/��������@�0E�h�E��fG� ���*A �D�R�=*���� 8�M�2���A�DE��A�W��>��<E�=��h�G .�
o �D�R�=*���,�>��M�2���A�DE��A�V�����M/�.�o �%�����*�� ����H��`��f���M/����b��� 8�M�2�d�o �%�H2���*�� ����A�DE��A�[6�/���M/�b��,�>��M�2�d
• �>��9�3�
������*A� 8���������������������������������������,�>��*"��������HGa�"������%�*���m�R���@�f�/G �D�%�G����h�1J�G� ��bBru�.�d�
����������������������������������6�����C,�����,a�"�����D�R�=�� ������H�:�,� ��H,�*, �L�>���&��J��*A�D��6�1J�2J������
Gra.Fillellipse(Bru, 0, 0, 100, 100)��X�R�h8�_��Y���� ����NO �6���.�
��&)R��H��JE�����D������*A�D�R�=����9�G�h����1J��������� � 8�i��,���.� 3– Path Gradient Brush�'/�/��"0�������="��7���������U�."���
������������������������1J�*��@�f�/G�����x�=��&�� �l E������ ���S����������������������-���J���@�f�/G�D�R�=��D���M�/� ���MU �D��6 �V�������+,�- �����������G�V*k���&�B� �-:.�
�h����E�Z��D�H���C,�3�
![Page 22: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/22.jpg)
������GDI ������� �� 28 from ���
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�� ���m�A��*A�h��Y%��H2��&'� �E�Z��D�H��h�G�
��������������������������������������&�*0��2���HG�';�����L��R8��H������J�E�Z��D�������+ZY=G ��>'�+�06������� �+,�- ��������G���� �bLines , Ellipse, Rectangle, Polygon �� Etc ,d���
10E�&�B����<E^8� �*����h�U�D�����,�*����� ���J���D��6��A�DE��A���29��.��D�%�G��U����JE�&�R�h����%�*��� �]�0Ea��D����� ����:>��&�M�/��1JE��2��%�.�
�[���(*��������MU�(A������A�DE��A��H����2���� �L 8�&�B������=*�f�� ������H2%�*G�1G .��
���������,�!�A��������������������������������*���� ����7��D�R�=��D���V��&��7���(�=�'��*A�!�7�*�����<�B��� 8.�������L�>���L:U�����H�*A�!�7�2J3�
�8 �3���������l�2�������)���a�"Graphics path���������������������%�G�h������J���&�B��&�Y%���)�����
����%�*��bLines , Ellipse, Rectangle, Polygon �� Etc ,d�����%�YG �-���J����*A�70�� ���".�
Dim Path As New Graphicspath()
Path.Addellipse(0, 0, 200, 100)
��������'�������7�n����������������L 8��M/��������6����!�7G�+,���������)����1J��*A�h��Y%Path ���l�, �����)���Graphics Path.���
�������������������@��G�h���&�B���*A�h��Y����,�>���M/�����������%�*������ Addellipse��������70����k% �����" .�
���,�9�3��
�l�2������� ��H���%�*����%�,�����D�R�=��1J�����)���a�"Pathgradientbrush����J�����)���a�"�1G�h������J���&�B���*A�h��YG��������D�R�=��D�� Path )d
�������'�6���� ���J �3� Dim Pthgrbrush As New Pathgradientbrush(Path)
�����J�2��� ��8�E��fG� �F�������D�R�=��]�B,���+�0��0����.� �������������������������FJ 8� �*����*U������,����*A�h��YG�D�R�=��D���bCenter Color�d���� �*�
���F�Y��bSurround Color�d���2�0�����D�R�=��~��ZU�L:U������;�&���1�Y�,� ����% ��H�J�����)���a�Y��
![Page 23: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/23.jpg)
������GDI ������� �� 28 from �Q�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
Pthgrbrush ���������6����V��2*��3�
Dim Bluecolor As Color() = {Color.Blue}
Pthgrbrush.Surroundcolors = Bluecolor�Pthgrbrush.Centercolor = Color.Aqua�
�
����������l�2�������)���*A�h��Y%�L 8��M/�Color �����������������J���&�B�����FJ 8� �*��&�Y%���� ��%�*���.�
���������(�T�U��� ��,�>���M/�Surround Color ����������������h��� �*���2�/,��0 �F�Y��� �*���� ����J�����)����,a�".�
�������������������������������������m]�O�(�E6����1�Y�G� ��2��% ��%�*������F�J��� �*���*A�h��Y%�W��>���M/��&>���"��Z���kG��,�'� �*��
������� ���G��G���Ea���*A�{�G����2A�:>�� ���������������������*7=G� ��2��%������ �*�R� �,���L�YG�Ea��D�R�=��D������f�J��2A��T�f��D�H���/=2��+,�*����.�
���������������������������������������������� �D �2=O ��%�*�� ����@�f�/�� ����J�� �&�B� ��%�YG��2�0 �������/� ����*"��� ����D�R�=��S��Y/� �L�����h����D�R�=��D�H���J�,�����%�*G� ���=2������3�
Gra.Fillellipse(Pthgrbrush, 0, 0, 200, 200)������������������M�2���*A�D��6�1J���@��2J�6����������b��� �����d����1�Y����b����� �������d������NM/���*A
�����������Da�Y��@��G�h���bGra���d������������������������������������*"����������,a�"���� �D�R�=����D���� ��%�*���@��2J �������/�Pthgrbrush.���
&HJ�6�����*A����7G� ����A�-���7G�h������%�8 ����.��h�h6�����-����MG�L:U����D�R�=��D���&�T�=G��0����*A�\�]�R� �!�7�2J�
�����������,�>��]a��.�4.Solid Brush�'�V�]�Y�."��K�����,�V�!��
�X�B�����/��[ E���������2��f�J� �P�J��0 ��"��� �*��-;�%6�7��D�R�=���� R8�+,�- ������-���J��� �L��.�DE�Z�������'�.�L�>���&��J��*A.��
��
�
�
![Page 24: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/24.jpg)
������GDI ������� �� 28 from �j�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
5.Texture Brush���U�."��������E�?��7���
��%�*�*��DE�T��H���@�f�/G�D�R�=��D����������������������������������������������HC��-;����,�1��ZG����D�R�=��D���@�f�/G��,��" ��>'�!�7����L�>������h�2J
������.�L�>�������7��V��G�3���#�% �g^�H���*A�DE�T�6�� �������8�;��%�*�*��DE�T��H���@�f�/,�D�R�=�� �1
�DE�T�l�2�������)���a�"���*AbBitmap�d��*A�DE�Z��E�/��&�Y%���)�������^�H��.�
Dim Bit As New Bitmap("E:\2.Jpg")
��)����1J� �6�������NO ������'bBit�dA�,bBitmapd���,��� �����������^�H��("E:\2.Jpg")�
�l�2�����D�R�=��{%�7���@��G� �#�%� 8���Texture Brush����)���a�Y����; �E�Z����1J���D�R���l�2����� Texture Brush�3�
Dim Bru As New System.Drawing.Texturebrush _
Bit _
,Drawing2D.Wrapmode.Tile _
, New Rectanglef(0, 0, 50, 50))
��HA�,�D�R���l�2�������)����1J��A�DE��A�L 8��M/�Texture Brush��DE�Z���� ����/��Da�"�1G�h�����)����1J��A�DE��A��,�>���M/�bBitd�
�������������������������������%�*���]�29�DE�Z��K�A�(�%�n��A�DE��A�W��>���M/��bFlip���d����������(/�U��A�DE��A��� �29�DE�Z��K�7��l�O ��%�*���]Clamp�S�Tile�S��Tileflipx� ��Tileflipxy� �Tileflipy��
����������� �L 8�VO���bClamp���d����������������������������h� �-�,E 6�&�A� ���)ZG� ��������'�DE�Z�� ��G� �DE�Z*��#*0�(�*�AbFlip ��d� #,��G�L�>�*��P���MG��2A��>'��H�*A�!�7�G�!�J ��.�
�%�G�h���]a����A�DE��A�V�����M/��=Z��(M�,����(%���DE�Z��������%�*�����b���� ����d��������������V����&�R��*A�VM��/���]a���E���U�1�% �����&�M�/�� ��bRectangle�d��������2� �
�]a���:>��E��f,�L�>��bo� o��d�]�BG���E��fG� ��2��% �.��������������D��6�1J�,��2A6� 8��1�Y���b���� ����d�������M�2�����b�� ����d�����1J���NMJ����bgra�d�����:�, ��
����,6�A�����D�R�=�� ����3� gra.FillEllipse(bru, 0, 0, 200, 200)�����������
���������������������������������#,������&�B����DE�Z����,�*���� �D��������R �i��,��������bTitle�d���������)G� ��2��% ��K�7��<�n��*A�!�7����D�R�=��&U6�DE�Z��K�A�<�n.�
� 8�i��,�������.�������������������������������������������������
�������������������������������������+,�- �����������G�����x�=��l�,�V�����*A�!�7�������2�H�,��0��2����������s7�����G �����������������\� ;����H�*A�!�7�2J�����������2����S����������������������E����8 �l��8���� 8���*A���&' ������S����+��7G����
�����N�Z����H�*A���/G���� �7�������Mf���*A�����������.����
![Page 25: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/25.jpg)
������GDI ������� �� 28 from �o�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�
�&G��M�8<��D������
�&O�=���E�����U�S�1*0�l�2�������)���a�"�(�=�'��*A����/��+��7G������H��6���� �' �&�B��3�
Public Pen1 As New System.Drawing.Pen(Color.Darkblue, 10)���J�1*��� �+�*A �6�����*A��2��7G bpen1��d����,�� Darkblue�� ���J��&/�����
��h6�7��Ff��h�h6�7��1J������@�f�/%�1*������
��V����1JE�1G�,���DE�Z�����NO ������'brectangle�d�1�Y��-;�1*�������Ff��� �&/����
�������DE�Z�������'� 8��H�*A�!�7�2J�@:08�l�,�(�������h6�7�3��
��
�����
:08����l�,�(7�J��2%���@:08�D���E��f,�{�'�@�S�������L�>����7��V��G����*HJ��*�7�3��NM/��{%�7���u���
���J �,����%�YG �1*���{%�7������Public Pen1 As New System.Drawing.Pen(Color.Darkblue, 10)���������
���1J��J�1*0�h�E��fG� ��2��%� 8���3�
![Page 26: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/26.jpg)
������GDI ������� �� 28 from �q�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
Pen1.DashStyle = Drawing2D.DashStyle.DashDot���H��1J����@:08��������*Y%���E��U�F��� 8�S,�+=�� ��%E ��@��G� ����%��,���������������6���������'���Mf���*A��9c��&�7��3�
Pen1.LineJoin = Drawing2D.LineJoin.Bevel�1*�����MU��*A�-��9�����*A�!�7����6����������g�G�!�J ����*HJ��H��.�
��6���������'�D���-�9c��� �3�Pen1.DashPattern = New Single () {4.0F, 2.0F, 1.0F, 3.0F}�
�
��7�nDashPattern��Ua����MU��A�DE��A����������� �P�J���&'����&��� �&��8����&��2,��HG�9c� �@:08��*A��2��7G��0��2�����3�
����������������������������
![Page 27: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/27.jpg)
������GDI ������� �� 28 from �v�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
�_�GK���<����
���/���L���=����� ��8�E���U8�<�n�(9:9����G�3��. Qbcolor��. Default�Q. Rgb�
���/�����������h���! �7���� �L 8�@�C2�q���A�DE��A��� ��q� ��8���%��G� ����@�f�J8�m���/���J�J8�.�
��:���O����@�C,��� �+,�- ������! �7����� ��,�>������������9� ��� � ��2��%�F���Da���� ����H,��27�����%��G������2��&U�G� ���#J�2��� �*��E��fG
� �*��S�(�*��������'��2A� ��8�D����HCG color . � ��8������0�����HC�J���+,�- ������Da����� ��O���8.�
��� �W��>��@�C2����Rgb 3���Z�U��� �E�Red ��Green ,��Blue ,�
� ��8��0����%��G�����HM*U� ��H��'�G�L:U�����2��%�9:>�� ��8�D��????�rrrrrrr���;�{�'�
����L�0�J�3���2A��H�2G ���=Z�������G�D]�O��E6���9:>�� ��8���� ���&'�oo��
�27%���� ����=T�G]�O��E6������"8� �*�� �h��YG��� ���J���"8� �*�� �����A��E���6��% �HC%8S���HG��E���9:>�� ��8��0����HCG �.��:>��h�2��3�
�P��)����"8�F�����"8� �*����D��6�1JE��%�G��,�K��=,3��������'� ���J�6���� ���
� ���l�2�������)���a�YG� �#�%�8 �Dim col1 As New Color
col1 = Color.FromArgb(255, 255, 0, 0)
�l�2�������)����1J��A�DE��A�L 8��M/�color ���@�C2��E���U��� ��,�>���M/�Rgb ���)��*���col1��@�0E�(7�E�&�Y%���)������ �
�������'�3��oo�........�����)���� �h����=B*���E6��*A� 8��� � �*�����=B��(�E6���
��=Z��������=B��(�E6����)G��2��% ����=R� ��%� � ����7��n�&�B���HC�J���"�oo��E6�.�
�oo��........��"8� �*��(�E6��� ����.............���kU8� �*��(�E6��� ��...............�<E^8� �*��(�E6��� �
����"8� �*���� ���l�2�������)���a�Y��+�0� 8�+,����=R� ��%� � ���P��)�.�
![Page 28: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/28.jpg)
������GDI ������� �� 28 from �y�
����������������������������������������������������������������������������������
������������������������������������������������������������������������������������������������������������������������������������[email protected]�
�
���,�93�:>��%6�A�D�R���l�2�������)���a�Y2J�S��P�J����� ��8�D�R�=��D������@�f�/,�
��H����)����,a�"bcol1d��.� Dim bru As New System.Drawing.SolidBrush(col1)
��>��93��D�,��U�h��� �*�����H,�*, �D��6�1J�2J�bcol13�d�
Gra.FillEllipse(bru, 0, 0, 200, 200)��
� ��:�����=B��(�E6� 8�����J��,����A�S�m�A�1J�G����2A����=B��D�����9�G��HC% ��H=*U���J����L��R:���HCG���=B�� ��8� ����/���Hk7��<���-���JE.
����7�����H,����J � ��8�#�'�G���� � ��8�����.����������������
i. ��
![Page 29: from 28 GDI · Alaa_gomaa2009@yahoo.com ˝ ˛˚ ˘ ˇˆ˙ 43 & B ˝N O ˆ’ S ˙ ˝ ˛˚ 1 J˛ - *ˆ7˜@ ˚˛ˇˆ *A & H/ ˜+˝ J ˛ % ( ’˛R+ 00. 6 7˜8 9:> ˜ T U ˇ 6 7˜8 ˘](https://reader034.vdocuments.pub/reader034/viewer/2022050405/5f8262fc4a83420444509526/html5/thumbnails/29.jpg)
Filename: alaa_gomaa
Directory: E:
Template: C:\Documents and Settings\alaa\Application
Data\Microsoft\Templates\Normal.dot
Title: 1�"�����"���\�1/� Subject:
Author: alaa
Keywords:
Comments:
Creation Date: ��o���q�����v��q3jj��
Change Number: 1,000
Last Saved On: ��o���|�����v��|3oy��
Last Saved By: alaa
Total Editing Time: 2,578 Minutes
Last Printed On: ��o���|�����v��|3oy��
As of Last Complete Printing
Number of Pages: 28
Number of Words: 4,864 (approx.)
Number of Characters: 27,727 (approx.)