Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Share Your Creations > Open Source Projects
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Open Source Projects The place to discuss Basic4ppc open source applications.

Pocket Weather

Reply
 
LinkBack (2) Thread Tools Display Modes
  #61 (permalink)  
Old 11-30-2008, 03:03 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default

Quote:
Originally Posted by klaus View Post
Hi Filippo,

As I could not test it, thanks for doing it.

Added at the beginning of the DrawText routine:
Code:
<font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff">If </font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080">cPPC </font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff">Then</font></font></font>
</font></font></font></font></font></font><font face=
"Courier New"><font size="2"><font face="Courier New"><font size="2">Font1.Size=fs</font></font>
</font></font><font face=
"Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff">Else</font></font></font>
</font></font></font></font></font></font><font face=
"Courier New"><font size="2"><font face="Courier New"><font size="2">Font1.Size=fs*scale</font></font>
</font></font><font face=
"Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff">End </font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff"><font face="Courier New"><font size="2"><font color="#0000ff">If</font></font></font>
</font></font></font></font></font></font>
I hope that this will remove the problem.

I tried to add version0.361 but there is a problem with the server.
Will try it later.

Best regards.

Hallo Filippo.
Danke für den VGA Test. Habe das Program wie oben stehend am Anfang der DrawText Routine geändert.
Hoffe dass das das Problem löst.
Wollte die neue Version posten, geht leider momentan nicht.
Versuche es später.

Grüsse.
I have made the changes and uploaded to the main post
Reply With Quote
  #62 (permalink)  
Old 12-01-2008, 03:01 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default

Quote:
Originally Posted by digitaldon37 View Post
I have made the changes and uploaded to the main post
Klaus and Filippo (and anyone else that may help) - I posted .36 on xda-developers and the latest feedback has been:

1. VGA not displayed correctly (I don't have a VGA device so I can't test)
2. Fonts are 'fuzzy' - especially when using an image background

The xda thread is here: http://forum.xda-developers.com/show....php?p=2905542
Reply With Quote
  #63 (permalink)  
Old 12-01-2008, 06:43 PM
Filippo's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Location: Schwäb. Gmünd, Germany
Posts: 906
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Hallo Klaus,

Quote:
If cPPC Then
Font1.Size=fs
Else
Font1.Size=fs*scale
End If
habe dein Änderung hinzugefügt und jetzt die die VGA-Auflösung OK!
__________________
PPC: MDA Pro, 2GB SD
Device: HTC Desire , Android 2.2
______________________
Reply With Quote
  #64 (permalink)  
Old 12-01-2008, 09:00 PM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default

Quote:
Originally Posted by Filippo View Post
Hallo Klaus,


habe dein Änderung hinzugefügt und jetzt die die VGA-Auflösung OK!
Filippo, does this mean VGA is working?

I think I found a solution to the 'fuzzy' fonts. The complaints have been because the letters have a white blur around them. I made a change to load the theme settings at the program start and to set the form forelayer to what is in the INI (it was being set to white)

I'm attaching the pda exe if anyone wants to test, I've asked for feedback over at xda as well.

Last edited by digitaldon37 : 01-10-2009 at 10:42 PM.
Reply With Quote
  #65 (permalink)  
Old 12-01-2008, 09:53 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

I have read the posts in the xdaa forum. I don't know where these white pixels around the texts do come from.
The Font in the program is Tahoma.
Even on Filippo's screenshot the texts have white pixels.
White color for fonts won't work because it is the transparent color. That means if we try to draw white texts they won't appear because they are transparent. If we need white texts then we must change this color.
That's also the reason why the xda testers got white texts with RGB(254,254,254), it's almost white but not exactly the true white.
I don't know if it is because I draw the texts on the forelayer. I ask Filippo to draw the texts onto the background image to see if there is a difference.

Best regards.

@Filippo
In Deinem Screenshot sehen die Texte wie verschwommen aus, mit weissen Pixeln drum herum und die Buchstaben sehen nicht sauber aus.
Weisst Du vieleicht wovon diese weissen Pixels herkommen ?
Hast Du das mit anderen Programmen auch ?
Oder kommt es daher weil der Text auf den Forelayer gezeichnet wird.
Könntest Du mal versuchen in der Zeile 122
Code:
<font face="Courier New"><font size="2"><font face="Courier New"><font size="2">drw.New1(</font></font></font></font><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000">"Form1"</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">,</font></font></font></font><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080">True</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">)</font></font></font></font>
durch
Code:
<font face="Courier New"><font size="2"><font face="Courier New"><font size="2">drw.New1(</font></font></font></font><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000">"Form1"</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">,</font></font></font></font><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080"><font face="Courier New"><font size="2"><font color="#800080">False</font></font></font></font></font></font></font></font></font><font face="Courier New"><font size="2"><font face="Courier New"><font size="2">)</font></font></font></font>
ersetzen um zu sehen ob es besser wird wenn man direkt auf das Hintergrundbild zeichnet und nicht auf den Forelayer.

Grüsse, und schon mal Danke im voraus.
__________________
Klaus
Switzerland
Reply With Quote
  #66 (permalink)  
Old 12-02-2008, 12:38 AM
Basic4ppc Veteran
 
Join Date: Jan 2008
Posts: 215
Default Version .37 (developer's release)

Version .37 (developer's release) has been uploaded to the main post.

.37 (12/1/08)
================================================== ===================
- Changed how form color is set to reduce font 'fuzziness'
- Added optional themePCFont, themePDAFont variables
- Fix background image file to select fileP, fileL (portrait, landscape)
- Fixed minor bugs


OPEN ISSUES
- S2U loads current weather, request for day forecast
- Must restart program when selecting theme for best results
Reply With Quote
  #67 (permalink)  
Old 12-02-2008, 09:18 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by klaus View Post
I don't know where these white pixels around the texts do come from.
I think digitaldon37 got it right by correcting the forelayer background. I noticed something like this when developing the ImageLibEx library. I think that text drawn on the forelayer is being smoothed or anti-aliased (which mixes the background colour with the text color) while text drawn on the background is not smoothed. I can't explain why because, as this is not within my control being buried in the code for Form, I did not investigate further.
Reply With Quote
  #68 (permalink)  
Old 12-02-2008, 03:02 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Thank you Andrew for the explanation.

Is this only the case on VGA devices, or newer WM operating systems ?
Can the smoothing be switched off ?
I tried on my Qtek9090 (WM2003) with Clear Type on or off there is no smoothing.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #69 (permalink)  
Old 12-02-2008, 04:00 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 5,953
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by klaus View Post
Is this only the case on VGA devices, or newer WM operating systems ?
Can the smoothing be switched off ?
As I said in the post I don't really know. If I remember correctly (more of a challenge each year ) ) it occurred using Form.Drawstring and Form.FDrawString. I can't remember if I checked it with ImageLib.DrawString or ImageLibEx.DrawString. I did get the impression it might have been because the Forelayer supports transparency but the Backlayer doesn't. The two layers are not directly supported by the .NET Form class but are implemented by code within Basic4ppc. They exist to provide persistent bitmaps otherwise apps would have to keep repainting their graphics on request from the OS when other things covered or uncovered the form. Because they are within the code for a form they are not accessible for tweaking by the Door library and I don't know how font smoothing works on a device anyway!
Reply With Quote
  #70 (permalink)  
Old 12-02-2008, 06:22 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 3,827
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Thank's again.

I will wait on Filippo's tests and also on digitaldon37's answers about what Form color he has choosen.

Thank's again and Best Regards.
__________________
Klaus
Switzerland
Reply With Quote
Reply



LinkBacks (?)
LinkBack to this Thread: http://www.basic4ppc.com/forum/open-source-projects/3323-pocket-weather.html
Posted By For Type Date
1800 PocketPC - Pocket Pc Freeware and Windows Mobile 6 Software - Part 2 This thread Refback 11-24-2008 12:40 PM
Pocket Forecast [v.25] (formerly Pocket Weather) - xda-developers This thread Refback 11-17-2008 11:17 PM
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Another Pocket Wiki digitaldon37 Open Source Projects 4 12-30-2009 03:12 AM
Personal Pocket PC Wiki tsteward Open Source Projects 133 02-24-2009 11:01 AM
Pocket Burning Sand neilnapier Questions (Windows Mobile) 2 11-05-2007 08:53 PM
print class for pocket pc tanrikuluahmet Basic4ppc Wishlist 1 10-01-2007 10:10 AM
Weather web service using HTTP lost2 Share Your Creations 3 06-10-2007 03:40 PM


All times are GMT. The time now is 12:44 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0