Drawing Win32 GDI API Programming: Using Windows APIs to Draw on the Screen without DirectX or OpenGL

This Win32 GDI API programming tutorial is aimed at programmers who need to be able to draw on the screen using native Win32 GDI API calls, without learning the ins and outs of third party drawing libraries such as OpenGL or DirectX. While support for these is excellent under Win32, they are only really applicable where performance is paramount:

  • games programming
  • high-end CAD programming
  • video / photo manipulation
  • etc.

For most tasks, the Win32 GDI and GDI+ APIs are perfectly adequate, if a little slow when processing large amounts of drawing commands. The advantage, however outweighs this small deficit : if the programmer can draw on the screem, they can draw anywhere that the OS knows about:

  • the screen
  • a printer
  • a plotter
  • a metafile or enhanced metafile
  • an offscreen bitmap
  • etc.

This makes the Win32 GDI API very useful for a wide variety of applications.

Win32 Drawing WM_PAINT Processing

Most drawing is done in response to a request from Windows to repaint the client area of the screen. The programmer is informed of this necessity by the reception of a WM_PAINT message in their Windows message processing loop.

For more about processing this message, the reader should consult the Win32 Drawing WM_PAINT Processing article. Once painting has begun, the programmer must direct all output to a device context (or DC).

Getting a Device Context

The Device Context handle points to a specific definition of a device that has been selected via a device driver. Luckily for the programmer, the default DCs – screen, printer, etc. – are easily selected. For more information about how to choose and select a DC, the reader should read the Win32 CreateDC and GDI Functions article.

The DC abstracts the actual capabilities of the device into the Windows API, so that it can be manipulated using standard GDI commands, which usually operate on objects.

The Role of GDI and GDI Objects

GDI stands for Graphics Device Interface, and provides a consistent interface to graphics programming, no matter the target DC (device context).

It is important to remember that manipulation of the GDI is mainly performed through the selection of dedicated objects. The two primary objects are the Brush and Pen.

Brushes and Pens in the Win32 GDI API

A GDI Brush is used to paint the interior of a shape, while a Pen is used to draw the outside, or plot lines. They can …

Astonishing Astone Gadgets: Review

Astone Xinc FM: Small wonder – Nope, this isn’t a reincarnation of – the Tamagochi of the 90s. This is – the Astone Xinc FM digital audio player. It boasts of a decent 1.8 260K OLED display, MP3, WMA and WAV audio support, MPEG4, DiVX and AVI video playback, e-book compatibility, voice recording, and FM radio functionality as well as an FM transmitter so that you can blast your tunes on the car radio or your home component system. It doesn’t have an expansion slot, but the 2GB of memory is more than enough to fulfill all your music and video fantasies.

Ready to go

It also comes equipped with a car charger so that you always have juice while you’re on the road. Add that to FM transmitter functionality, then the Astone Xinc is a very reliable companion especially when you’re stuck in heavy traffic. You can either listen to your favorite tunes or watch your encoded videos on its LCD display-though it does get very tiring on the eyes after several minutes,

Bottom line

It could use a bigger and better screen resolution so that you can take better advantage of its other features, but for its size, price and functionality, this is a pretty decent buy for any music freak.

PROS

Ton of features in a small package.

Useful accessories for someone who’s always on the road.

Compatible with a variety of audio and video formats.

CONS

No regular outlet charger.

Astone Niva: Dress up your tunes

Simplicity with a twist

Despite its plain black square exterior, this MP3 player is anything but ordinary. Running on a single AAA battery, this tiny gizmo can sure pack in the tunes with its 512MB internal memory and expansion slot that supports up to 2GB of additional storage. It’s capable of playing MP3 and WMA files, has voice recording, lyric display support and FM radio functionality

Just the way you like it

What really sets the Niva apart from the rest is the inclusion of eight interchangeable covers that will make it fit whatever mood you’re in. However, we highly doubt that these covers are reusable since they’re nothing more than just stickers that have been designed specifically for the Niva to fit just right on the bare face of this digital audio player.

Back to basics

It’s equipped with a control button, which at first glance is deceptively similar …

Time Travel Wallpaper

Going back to a time, when nothing seemed possible

While nothing was impossible.

Could not dream or see past the things I could see,

Soul not open yet to my endless potential.

Learning to maximize the dreams within,

Listening to the loud, silent guides which

Dictate my footsteps.

Keeping me safe

Scaring me in the same instance,

Soul built on faith

Spirit led by inner light

That shines constantly,

Even in despair.

Going back to a time,

Becoming what I didn’t see, I could be

Loving, simply being me.

Existence of love,

Matter consistent with adoration

Of the most supreme being

That exists eternally

Lighting the external, internally.

Breaking through walls,

Of stubborn depression

To my breakthrough,

Embracing the time

That built my grittiness,

That showed me flowers can bloom

In the harshest conditions

True dreams’ beauty,

Is just as insistent

On becoming real

Going back to a time,

To release and heal.…

Avatar: The Last Airbender Wallpaper

One of the best Nickelodeon shows of all time is Avatar: The Last Airbender. The animated show, which aired for three seasons, featured some of the coolest kid role models television has ever seen. Avatar: The Last Airbender begins with Aang, a 12 year old kid and the last of the airbenders. When he learns that he is the Avatar, he and his flying bison Appa flee their home. Along the way, they crash into the ocean and are frozen. 100 years later, siblings Sokka and Katara stumble upon him. They awaken him and inform him of the Fire Nation’s campaign to take over the world. The Avatar (Aang) is the only one who can stop the impending world war. But first, Aang must learn to bend the remaining elements: fire, earth and water. The series follows Aang, 15 year old Sokka , Katara (a 14 year old waterbender), Toph (a 12 year old feisty, young earthbender) and Zuko, a 16 year old firebender and the conflicted son of the Fire Nation lord, as they try to find a way to save the world.

Avatar has been picked up by director M. Night Shyamalan, who will release a live-action adaption, titled The Last Airbender, July 2.

In the meantime, if you have yet to catch the animated show, do so. Then check out the below free Avatar: The Last Airbender wallpapers from the television show and the movie.

Free Avatar: The Last Airbender Wallpaper at Anime-wallpapers.com

Here find 20 wallpapers featuring Katara, Aang, Sokka, Zuko, Toph, Suki and Azula. Select the image, then click download. Then right click and save image as or set as desktop background. Keep in mind that if you don’t save the image to your computer, if you change your wallpaper later, you will lose the image.

Free Avatar: The Last Airbender Wallpaper at Entertainmentwallpaper.com

Here find 21 wallpapers from the hit television show including Aang airbending, Aang in the ice, the elements, the group, the temple, Toph in action, true love between Aang and Katara and Appa. Click on the selected wallpaper, then right click and save image as or set as desktop background.

Free The Last Airbender Movie Wallpaper at Entertainmentwallpaper.com

Here find 5 wallpapers from the upcoming movie, including 4 The Last Airbender movie stills and one poster of Aang. Select your wallpaper, then right click and save image as or set as desktop background.…

How to Create Wallpaper in Photo Explosion

If you are using the Photo Explosion program for your photo editing, you may find this tutorial useful. This tutorial will show you how to create wallpaper for your desktop using the Photo Explosion program. If you’re looking for a great program to edit photos in and to do other things in, check out the Photo Explosion program. In this tutorial, I am going to walk you step by step through creating your own wallpaper for your desktop. So, let’s get started with this tutorial.

Step 1 – Loading Photo Explosion

The first step is to load your Photo Explosion program. Go to your start menu and place your mouse over All Programs. When the menu loads, look for the Photo Explosion folder and place your mouse over it. Then click the Photo Explosion link in the menu that expands. It will take a minute for the Photo Explosion program to load.

Step 2 – Selecting Your Project

Now that your program is open, you will need to select the project for this tutorial. Click the Create button on the left side of the interface. On the right side of the interface, you will need to click the Wallpaper icon.

Step 3 – Creating Your Wallpaper

The next step is to create your wallpaper. The window you are in now is where you will need to select the image you want to use for the wallpaper and edit it if you need too.

You will first need to select the image you want to use. On the left side of your program, you will see the drop down box. Drop that box down and select the folder with the image you want to use. Then you will see the images in that folder appear in the panel below the drop down box. Look for the image and click it to select it. Then click the Add button at the very bottom of the panel.

If you need to edit the image, you can do so in this panel. You will notice when you clicked the Add button, the image appeared in the panel on the right. You will need to click the image to select it. Then you can edit it by clicking the Pencil icon right above the image. A new window will open and you can edit the image in this window. Use the buttons on the …

Free Harry Potter Wallpaper

Free Harry Potter wallpaper is the best way to display your love of your favorite wizard. The new release of Harry Potter and the Half Blood Prince has inspired the creation of many fun Harry Potter desktop wallpaper designs. Daniel Radcliffe, Emma Watson, and all your favorite stars of this wizard series are also available and If you are searching for great Harry Potter wallpaper, look no further than these five websites.

Free Harry Potter Wallpaper Website #1

Entertainmentwallpaper.com features 56 free Harry Potter and the Half Blood Prince inspired Harry Potter wallpaper. My personal favorite free Harry Potter wallpaper featured on this site has Harry Potter and Professor Dumbledore standing on a rock in the midst of a stormy sea. Other free wallpaper designs include Hermione Granger, Ron Weasley, and other popular Harry Potter characters. Various resolutions are available which ensures that the downloaded wallpaper will fit your desktop.

Free Harry Potter Desktop Wallpaper #2

Flash-screen.com has two free Harry Potter wallpaper designs available. One design is that of the front cover of the book. The second is another rendition of a book cover design. Out of these two, my personal favorite is the one that looks like the book cover as sold in the United States. There are also several other free Harry Potter wallpaper options available that weren’t specific to the recent release of Harry Potter and the Half Blood Prince.

Free Harry Potter Wallpaper Website #3

Mac owners sometimes have issues downloading files meant for PCs. This is not such a big deal when you download something made especially for Mac. Softonic has one very neat free Harry Potter wallpaper option for Mac owners. The graphics in this free Harry Potter wallpaper design are exquisite. It features Daniel Radcliffe as Harry Potter darkly staring out with the title Harry Potter and the Half Blood Prince in a blue graphic print background.

Free Harry Potter Desktop Wallpaper #4

Six free Harry Potter wallpaper designs are available at VerTor.com. These six free Harry Potter desktop wallpaper designs display the dark and grim mood that was portrayed in the sixth installment of the Harry Potter series. My favorite design on this website features four Harry Potter characters dressed in black with a blue background. The way everyone is standing almost reminds me of Keaneau Reeves in the Matrix.

Free Harry Potter Wallpaper #5

Wallpaperez.info has nine free Harry Potter desktop wallpaper designs available. …

Mother’s Day Wallpaper for Android Tablets

Do you want to decorate your Android tablet with Mother’s Day wallpaper? Well, take a look at these great wallpaper apps available for you to use for free. All of these Android Mother’s Day wallpapers can be installed right from your play store on your tablet. All you have to do is search your play store or use the links at the bottom of this article to visit the app page.

Happy Mother’s Day HD Wall by Purple Berry

The Happy Mother’s Day HD Wall app by Purple Berry is an app with over 30 different wallpapers for you to choose from. This app provides high quality images for you to use as your wallpaper for Mother’s Day. You can change the wallpaper to something new each day. Some of the wallpaper has messages and some are simply beautiful graphics. You can search your play store for this app, or you can use the link at the bottom of this article to go directly to the wallpaper’s page.

Mothers Day Heart LWP by Friends Art

This is a Live wallpaper. This wallpaper is red with a large heart that has sparkles and a Happy Mother’s Day message. When you set this as your wallpaper, you will see sparkles on your screen that will illuminate the heart and message. It is really pretty. You can use the link at the bottom of this article to load this wallpaper, or you can search for it in your play store.

Happy Mothers Day Roses LWP by Friends Art

This is my favorite wallpaper out of them all. This is a beautiful wallpaper with roses and water. It is a live wallpaper and it appears the water is following. It is so beautiful and relaxing to watch. If you are looking for something that is beautiful and relaxing at the same time, take a look at the wallpaper. Use the link at the bottom of this article to go directly to the app page or search for it in your play store.

Happy Mother’s Day to all you mothers!