How to Create a Skin - Spb Weather - Pocket PC Products - Spb Software House
Spb Software House Home Page
ABOUT CONTACT US PRESS
Smartphone SoftwareDownload Spb Pocket PC SoftwareUniThemesEnterprise Solutions for Pocket PCTechnical Support
Virtual TourDownloadPurchase
Spb Weather Skin Creating Documentation

Summary

Spb Weather is a program for dislpaying weather information on the Today screen. Its look and feel can be customized using skins. This document describes how to create custom skins for Spb Weather.

Getting Started

First download Spb Weather program from Spb website:
http://www.spbsoftwarehouse.com/products/weather/download.html

Here are a few samples of Spb Weather skins:

In a few words an Spb Weather skin is a set of icons for different sky states (sunny, cloudy, rainy, snowy, etc). Each icon should be of three sizes: 16x16, 32x32 and 64x64. Here are some different weather views that show in which cases these 16x16, 32x32 and 64x64 icons are used:

16x16:

32x32:



64x64 (VGA Only)

Skin Files

Actually, an Spb Weather skin consists of 3 bitmap images. Each image contains the whole icon set for one particular size (16x16, 32x32, and 64x64 pixels).

Each image is logically split into two parts. One part is an image itself, and the other part is the alpha channel. The alpha channel defines a transparency mask used to put images on the background. A lighter pixel in the alpha channel corresponds to a less transparent pixel on the final image. Thus, a white pixel of the alpha channel means that a corresponding pixel in the final image won't be transparent at all. A black pixel means that a corresponding pixel in the final image will be 100% transparent (and we will see the background under it). All pixels of the alpha channel part must be of gray scale only (the same values for all three color components: e.g. #333333), excluding a separating pixel that marks the very last pixel of the image with color #00FFFF (see samples).

Icon Description

Each icon in the file corresponds to one sky state. The following table describes these states:

1WEATHER_UNKNOWN
2VERY_HOT
3SUNNY (Clear sky)
4PARTLY_CLOUDY
5CLOUDY
6HEAVY_CLOUDY
7SMOKE
8LIGHT_RAIN
9HEAVY_RAIN
10RAIN_WITH_SNOW
11LIGHT_SNOW
12HEAVY_SNOW
13BLIZZARD
14THUNDERSTORM
15SUNNY_WITH_RAIN
16SUNNY_WITH_THUNDERSTORM
17SUNNY_WITH_SNOW
18NIGHT_CLEAR
19NIGHT_PARTLY_CLOUDY
20NIGHT_CLOUDY
21NIGHT_HARDLY_CLOUDY
22NIGHT_SMALL_RAIN
23NIGHT_HARD_RAIN
24NIGHT_RAIN_WITH_SNOW
25NIGHT_SMALL_SNOW
26NIGHT_HARD_SNOW
27NIGHT_BLIZZARD
28NIGHT_THUNDERSTORM
29NIGHT_WITH_RAIN
30NIGHT_WITH_THUNDERSTORM
31NIGHT_WITH_SNOW

Testing the Skin

[To be supplied.]

Building a Skin Installation Program

After you have created these 3 bitmap pictures (16_16.bmp, 32_32.bmp and 64_64.bmp) you are ready to build a skin installer (a desktop PC program that will install the skin on your Pocket PC).

Please note that the skin installer builder works only on Windows 2000/XP (it does not work on Windows 9x).

To build a skin installation program:

  1. Download SpbWeatherSkinBuilder.zip
  2. Unzip SpbWeatherSkinBuilder.zip to a custom folder
  3. Substitute 16_16.bmp, 32_32.bmp and 64_64.bmp files with your newly created bitmap files
  4. Open the build.bat file for editing (for example in Notepad)
  5. In the following line of this file:
    SET SKINNAME=Blue
    substitute "Blue" with your custom skin name. Please note that a skin name should contain no spaces.
  6. Save the build.bat file and run it
  7. A new {YourSkinName}__SpbWeatherSkin_setup.exe file will be created in the same folder

Support/Contact Us

If you have any questions about creating skins for Spb Weather please do not hesitate to contact Spb Weather Support.

Price: USD 14.95
Current version: 1.7.4
Release date: Mar 14, 2008
Download size: 1.74 MB
Size on device: 2.0 MB
Requirements: WM Pocket PC 2002, WM 2003, WM 5 or WM 6
Discounts: Top 5 Discount
Reward points: 3 points
Money-back 30 days money-back.
No questions asked.
No risk, full price refund.
Pocket PC software features demostrated through screenshots
More screenshots...