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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Request for SetPixel in Form object.

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 01-02-2008, 03:38 PM
Junior Member
 
Join Date: Oct 2007
Location: Italy
Posts: 25
Default

Agraham, you are a big! You solved me the problem of floodfill!

Thank you and thanks also to Klaus for his engagement!

I can to continue my project and i dedicate to you my work
__________________
HP HW6915 240x240 - Windows Mobile 5.0
Reply With Quote
  #22 (permalink)  
Old 01-02-2008, 05:23 PM
Senior Member
 
Join Date: Jul 2007
Location: Michigan Usa
Posts: 176
Awards Showcase
Beta Tester 
Total Awards: 1
Default

@agraham

I have installed your library and have it working as you intended it to. I have a bitmap that is 500 x 500. I have it set up to scroll. Every time I draw a line or arc or circle I save the coordinates to a table. The question I have is there a way I can store some kind of reference to the table of the fill so that when I redraw the table data I can also redraw the fill after the bitmap has been moved.

__________________
Using 6.90
dennishea
Reply With Quote
  #23 (permalink)  
Old 01-02-2008, 05:43 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by dennishea View Post
when I redraw the table data I can also redraw the fill after the bitmap has been moved.
I may not be understanding the problem but if you have the co-ordinates to draw (say) a circle then can't you just pass the centre co-ordinates to the floodfill library?
Reply With Quote
  #24 (permalink)  
Old 01-02-2008, 05:46 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hello agraham
You find attached the source of my IconEdit program.
The program is still in progress so not all functions are working yet.

The drawing functions are almost OK.
The *.ico save function is not implemented yet.
The color palette is not yet complete.
The load function works, thank's to Erel's code. If you load the B4P.ico file
you will have both icons in the program, the 16*16 and the 32*32 icon. You can work on both in switching from one to the other in clicking in the normal size icon at the left botom of the screen.
There is no help file yet either.

Thank you in advance and Best regards.

Klaus
Switzerland
Reply With Quote
  #25 (permalink)  
Old 01-02-2008, 06:05 PM
Senior Member
 
Join Date: Jul 2007
Location: Michigan Usa
Posts: 176
Awards Showcase
Beta Tester 
Total Awards: 1
Default

You were right. I made a mistake in my logic. I was changing the values in between the table and floodfill. Sorry for not investagating further.

__________________
Using 6.90
dennishea

Last edited by dennishea : 01-02-2008 at 06:26 PM.
Reply With Quote
  #26 (permalink)  
Old 01-02-2008, 06:37 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Hi Klaus. I can't immediately think of a very fast way of doing what you want but here's a tweak that cuts the 32*32 time down to about 4 seconds (optimised compile) on my device. Basically it skips squares already checked.

BTW I got a format exception when I ran the compiled code on my device - I didn't bother to find out the problem as it ran on fine and the floodfill worked so I don't think it was anything I did.
Reply With Quote
  #27 (permalink)  
Old 01-02-2008, 10:05 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,463
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi agraham
Thank's for the improvement, I tried it on my device the time is now about 6s instead of the 9s before.
I will try another idea, use the quick floodfill routine for the standard sized icon and then read the colors from there for the magnified icon, will see if there is a significant time improvement.
Thank you very much for your help and engagement. It's a pleasure to work on this forum with clever persons like you and some others.

Klaus
Switzerland
Reply With Quote
  #28 (permalink)  
Old 01-03-2008, 09:20 AM
Junior Member
 
Join Date: Oct 2007
Location: Italy
Posts: 25
Default

A nice program, Klaus! I hope you finish your work!

agraham :
i don't have the compact framework 2 on my device but, on the microsoft site, i seen that his size is 24MB! It's possible? My device have only 64MB of total internal memory and now there's 6MB of free memory!
I must delete (almost) all my programs?

EDIT : Can i to install the CF2 on my SD card?
__________________
HP HW6915 240x240 - Windows Mobile 5.0

Last edited by forisco : 01-03-2008 at 10:35 AM.
Reply With Quote
  #29 (permalink)  
Old 01-03-2008, 11:13 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 6,072
Awards Showcase
Innovator medal Beta Tester Forum Contributer 
Total Awards: 3
Default

Quote:
Originally Posted by forisco View Post
i don't have the compact framework 2 on my device but, on the microsoft site, i seen that his size is 24MB!
You want Compact Framework 2.0 Service Pack 2 (SP2). It's actually 38.7MB and no, I don't know why it's so big. I think it has a lot of desktop stuff that only gets installed if you have Visual Studio 2005 on your PC. Don't worry, it only takes a couple of MB on the PPC and you can always uninstall it. Before you install just take a look in Remove programs and take a note of any entry that includes "Compact Framework". They are probably CF 1.0. Any that appear after CF2.0 installation will be CF2.0 and you remove them to uninstall. It is probably not wise to put it on a storage card.

http://www.microsoft.com/downloads/t...displayLang=en
Reply With Quote
Reply


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
request for squeeling counter demo! colin9876 Questions (Windows Mobile) 25 05-21-2008 10:25 PM
Object Reference not set to an instance of an object monster9999 Questions (Windows Mobile) 9 01-15-2008 09:56 PM
HTTP maximum request size and method problems willisgt Questions (Windows Mobile) 1 08-27-2007 07:10 PM
Tutorial Request - How to creat B4P library? conf Questions (Windows Mobile) 5 06-25-2007 11:26 AM
SetPixel do no work Put Claude Questions (Windows Mobile) 1 05-14-2007 05:21 AM


All times are GMT. The time now is 06:21 AM.


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