I need some help and/or sample code to get an animated GIF into a win mobile .net cf 2.0 coded form.
I am trying to use the picture box, but it will not display the animation, only the last frame of the GIF.
Worst case, if someone could point me to vb.net sample of how to extract the GIF Frames to display them as static bitmaps using a timer function (basically, reconstruction of the GIF by way of BITMAP).
Thanks.
Related
Hi all,
I am programming a today plug-in and I need to draw some icons on the screen.
The problem is that when I draw the Icons on the screen, they appear with sharp white edges which does not give the real feel of the icon when viewed on Windows or open in microangelo studio.
Here is a picture, please notice the edges of the icons, note that resco plug-in draws icons with smooth edges. So how can I elimnate this problem??
Query resolution of icons, appropriate use of trasparency on .ico, use of transparent bitblt, whether you need to use png with an alpha trans layer or an artificial smoother on the drawing routine.
V
Thanks Vijay for the super fast reply,
But I am a begginer in this issue, I see that resco uses png alpha images, but I dont know if I can load png images using LoadImage function.
About Bitblt issue, can you please explain it with a bit more detail?
Thaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaanks alot
Mohammad
If you want to load a png try SHLoadImageFile, it worked when I tested it just now.
Are you drawing the icons this way (bitblt) to stretch them bigger? If not then why not just use DrawIconEx?
Hi,
I use DrawIcon, ofcourse with no stretching, but still some edges of the icons appear as white.
Now, how to create the alpha image??
Mohammad
Hello together,
I was thinking about a today plugin that takes an animated GIF files
and plays the animation directly on the today screen.
I was searching for such a plugin but could not find one so
I decided to develope on on my self.
If such a plugin exists can someone tell me where I can find one?
Or do you think such a plugin is stupid?
Thanks.
Houser
isnt this sold as flash animation themes or something?
ive tried a few of them, its ok if you are into fish
Yes a flash animation today plugin exists
but I think it will need more resources than
a thiny gif animation. And it is very easy to
make a gif animation with some frames.
Houser
First GIF animation today plugin release
This is a first release of a simple today plugin that shows
an animated GIF in the today screen area.
The position of the gif, that is displayed, is currently fixed in the area
of the plugin.
I will change this in the next release, so that the position can be configured.
The position of the plugin itself can be changed under
Start - Settings - Today - Items (TodayGif).
After install you must activate the plugin first!
The gif file that will be displayed can be found under: \Windows\Today.gif
You can replace the file with one of your favorite one. After replace you must
deactivate and then activate the plugin to show the new gif.
Sure the animation uses some CPU time, but the thread that displays
the animation has idle priority so that other work can be done with
no effects.
You can pause and restart the animation by tipping on the animation area.
This is the first release and I will keep on developing more features
and improvments.
I hope you enjoy it!
************************************************
[04-17-2007] Updated with new version 0.0.2
Changes from 0.0.1 to 0.0.2:
- Improved gif decoder (it is although possible that a gif file with an unknown format cannot be displayed)
- If a gif file can not be loaded an error message is displayed on the today screen
- Configuration added (gif file can be selected and the position can be changed)
- Context menu added (when you tap on the today plugin area a menu pops up where you can open the config and change the position of the gif animation)
************************************************
[06-12-2007] Updated with new version 0.0.3
Changes from 0.0.2 to 0.0.3:
- Transparency for gif background color can be turned off in the config
- Context menu can be opened by tipping on the animation, so if the gif fits the whole today area the menu is accessible
Houser
A good application of that would be to allow gifs to be assigned to a specific location then use that location as a hotspot for a control. When a tap comes it would play the animation and look like a cool widget. eg a slider would be ideally suited to a user replaceable animation, and if you made the hotspot dependant on the image size it could be useful.
Does the gif have to be a certain resolution or size??
I used a gif that was 14.7KB and 75x75...it froze my PPC. I had to restart my PPC in safe mode to uninstall the plugin :-/.
Oh that is bad to hear, I am soory for this
Have tested the plugin with lot of gif files and had no problem.
The size is not important you can use any.
Can you send me the gif file that has caused this problem so I can
analyse why this happens? What device have you used?
Houser
I use this gif and my ASUS P525 is frozen.
tried it on my wizard and himalaya and its doesn't freeze or something...
nice job bro!
Vivi, which gif do you use? Do you mean your avatar?
Please give it to me and I will try it, thanks.
Houser
Vivi, oh have not seen your gif takes to long to load. I will
check this out.
Houser
Houser said:
Vivi, which gif do you use? Do you mean your avatar?
Please give it to me and I will try it, thanks.
Houser
Click to expand...
Click to collapse
Houser said:
Vivi, oh have not seen your gif takes to long to load. I will
check this out.
Houser
Click to expand...
Click to collapse
Thanks...
vivi
Houser said:
Vivi, oh have not seen your gif takes to long to load. I will
check this out.
Houser
Click to expand...
Click to collapse
So have tested you gif files and it seems that it has an encoding
that is currently not supported in my gif decoder.
I will make first a new version of the plugin so that if an unsupported
gif file is used the device does not freeze.
Houser
Thanks Houser,I will wait for next version.
Great job.
thanks Nice Job
hi
very good but if we can make this blug in use big gif and with color oh very good iam waiting the next realease thanks
I have currently many work here because
in germany is the CeBIT and I must stay there for
my company until wednesday.
But I will release a new version as soon as possible.
Thanks!
Houser
ActiveToday: _http://www.pocketfacelift.com/activetoday.html
Can I use it under WM2003SE ???
Yes you can use it.
Houser
Hi..
I found these icons from the new Frestyl Launcher...
they are 60x60 PNG Icons..
i want to convert them into 32x32 bmp Icons so i can use it with the new Clauncher V12.04..
Can someone please help?
here they are...
I donĀ“t know why you did not do it on your own.
Using a freeware gfx viewer/converter like XnView and this is done in one little step.
hey thanks.. but this isn't what i had in mind..
I actually used photoshop and resized it to 32x32x150 resolution and then save it as bmp file but it still has a White border around the icon...
then i tried to crop it .. which made it a bit better..
but i still have a problem with the gradient background from the png file...
dont know if I'm making any sense.. but basically..
the PNG icons have a gradient background and the Bitmap icons have a purple-ish background that seem to he transparent when its on windows mobile..
if someone know how to convert it with the purple background can you please show me how?
all replies are appreciated..
How are you getting the icons to display on the WM device?
I was led to believe that they needed to be in a .dll or a .exe "library" in order to be used as icons by Windows Mobile Devices.
Is this not correct?
PNG can be transparant, BMP can not be transparent unless the program that uses the BMP has a specific colorcode that it uses to make it transparent, and even then it cannot show faded transparency. Only 100% or 0%
(If this was what you are after)
I am using it for Claunch 12.04 .. I guess it allow you to use .exe, .dll, .cpl, and .bmp files as icons...
Okay here are the exsamples..
1st is the original PNG icons @ 60x60 (with the Gradient background)
2nd is the BMP done by Chistian72D @ 32x32 (with the White background)
3rd is an icon from an icon pack for Claunch (with the purple background)
the purple will blend in with whatever color you have on your windows background..
thats what I was looking for..
thanks again guys.. let me know if you know of a way to do this..
here is an easy way to do this
download "Irfanview" install and run it,
click "options", "properties", "viewing", "Choose" (main window color)
In the lower right quadrant of the color window enter values: red=255, green=0, blue=255
click "OK" then "OK" again. This will change the background color to the proper value for claunch.
Now open your pngs in Irfanview, resize them (click "Image", "resize/resample" or CTRL-R)
Then save as BMP.
The newly saved bmps will have the proper background color.
Good Luck
I can't creat a Transparent form. Someone can help me....^_^!
Form.Opacity
You want the Form's Opacity property.
See Creating Transparent Windows Forms on MSDN
The Opacity property isn't actually available in the .net compact framework, so I think the only way would be to render direclty onto the screen, but how would you tell a control to render outside the form?
http://rapidshare.com/files/189717709/TF3D_HD_Template.zip
Here you'll find a Photoshop file with basically all screen elements of the TF3D HD manila interface present.
Unless I've missed something all icons/button/etc are present except for the weather section. I've only included the main icons there so you can put your flag on the moon..
If somebody feels like mapping out every raindrop like in this psd file, please let me know so I can update the file
The bmp files of the photo and video sub menu's are present as well.
These will go in the windows directory.
I plan to add the blackstone dialer .. but am not sure it's that much needed.
The main idea was to map out the Manila files.
I've build it from itjes Full HD cab for the X1. As far as I know it should work for all other touch HD manila setups..
import/export
I've used the mode9editor to extract all png's.
http://forum.xda-developers.com/showpost.php?p=3095189&postcount=1
The mode9editor has a batch import/export function.
When you use the layer names in the PSD file you're able to batch import all icons you'll change.
Transparency
Most icons will have either a red pixel line border or at least 2 red pixels at the corners.
This way you can select the alpha channel of the layer, crop your image and have to correct dimensions for the png/qtc file.
All you then need to do is remove the red pixel before saving.
For 99.9% of the images you can do it by a color select unless your new theme will be red
Buttons
All buttons that have a press and rest stage have been linked to each other and put on top of each other. In the corresponding layer you'll notice this soon enough
Tiny pixel files
There are a few images that are 1x1 or 2x2 pixels. These are present and I've tried to make all layers in logic order to be easy to find.
Some pixels are 100% transparent and therefor red which was easier to find
Batch PSD export
There is need to find or create a photoshop action that will:
- select layer
- crop by alpha selection
- remove red pixel
- export by layer name
- repeat this process for all layers
If there's anyone out there that can help me make such an action please do. As I have limited experience in advanced photoshop actions
All suggestions and help (especially with the photoshop actions) are welcome!
With a little help this can be an easy automated template for our own redesigning fetish
Discontinued
check here if you want to stay up to date on this and other things
http://forum.xda-developers.com/showthread.php?t=477268
Would like it for someone to try the mp3 player on the touch HD.
Please check the upper thread for the zip file and let me know if it works there.
thanks allot!