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

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

ImageLibEx library

Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 11-15-2008, 03:29 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 Byak@ View Post
How can i rotate image for some degrees?for example 37 degrees?
Version 1.1 posted with new method BitmapEx.Rotate which rotates a bitmap an arbitrary number of degrees. Note that it you want to merge the source for a device app you need to put a SIP(False) statement in your App_Start if you do not already use SIP else where. This forces the Basic4ppc to reference a .NET assembly that itf would not otherwise do and that is required for merging. This need will be removed with the next version of Basic4ppc.
Reply With Quote
  #22 (permalink)  
Old 11-15-2008, 06:29 PM
Byak@'s Avatar
Basic4ppc Veteran
 
Join Date: Jul 2008
Posts: 416
Send a message via ICQ to Byak@
Awards Showcase
Beta Tester 
Total Awards: 1
Default

ooops)big thanks agraham!
__________________
I'll Kill you, I'll Crash you, I'll never be yours!
--------------------------------------------------
Qtek s110; o2 XDA Flame; Nokia E63 red;
ASUS Eee PC 901 (Windows XP sp3) + TouchScreen;
Reply With Quote
  #23 (permalink)  
Old 11-17-2008, 03:01 PM
Knows the basics
 
Join Date: Apr 2007
Location: Steinheim, Germany
Posts: 91
Default Rotate

Hi agraham,
I tested the new features and especially ROTATE works very good and fast in steps of 90° (about 150 msec for an image with 240 x 240 pixels) on my HTC. But 90° is a little too much for “Course Up” with my moving map system. The maximum deviation is 45°. When I rotate the map with the raw heading it takes up to 1800 msec and this is too slow. Is it possible to optimize the rotation for steps of e.g. 30° or 45°. May be we can (you can) replace the trigonometric functions with a constant and this will be much faster??
BTW: Using ROTATE clock- and counterclockwise would be unbelievable!
__________________
Thanks for all
wolfgang
___________________
Desktop: Dual Core 3.0 GHz, Win7
Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise
GPS: iblue 747
Reply With Quote
  #24 (permalink)  
Old 11-17-2008, 03:49 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 wolfgang View Post
replace the trigonometric functions with a constant
I already did. It was reasonably optimised before but now I have moved as much out of the main loop as I can. Try this modified library and post here how it goes. It may be a little improved but this is as fast as it is going to get in a .NET library unless I can think of a better algorithm - and I doubt that!
Attached Files
File Type: zip ImageLibEx1.11.zip (17.7 KB, 19 views)
Reply With Quote
  #25 (permalink)  
Old 11-17-2008, 04:15 PM
Knows the basics
 
Join Date: Apr 2007
Location: Steinheim, Germany
Posts: 91
Default New version

thank you. Can you please upload the cs files as well because I don't develop on the device.
__________________
Thanks for all
wolfgang
___________________
Desktop: Dual Core 3.0 GHz, Win7
Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise
GPS: iblue 747
Reply With Quote
  #26 (permalink)  
Old 11-17-2008, 04:24 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 wolfgang View Post
thank you. Can you please upload the cs files as well because I don't develop on the device.
Just copy ImageLibExDevice.dll to your device with your compiled app. I'll sort out cs files and help once I have determined what is going in the next release.
Reply With Quote
  #27 (permalink)  
Old 11-17-2008, 05:02 PM
Knows the basics
 
Join Date: Apr 2007
Location: Steinheim, Germany
Posts: 91
Default Test

Hi,
first off all: congratulations!
Tested on HTC Cruise 3650 WM 6.0 Pro (Qualcomm® MSM7200™, 400MHz). Image size 240 x 240 pixels (bmp or gif doesn’t matter).
90°, 180° and 270° ~ 130 msec
5° ~ 400 msec
45° ~ 600 msec (45° is the slowest)
That’s very cloth to perfect. Now I have to optimize my code. Thanks’ again.
__________________
Thanks for all
wolfgang
___________________
Desktop: Dual Core 3.0 GHz, Win7
Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise
GPS: iblue 747
Reply With Quote
  #28 (permalink)  
Old 11-18-2008, 10:53 AM
Knows the basics
 
Join Date: Apr 2007
Location: Steinheim, Germany
Posts: 91
Default

Hi,
Rotate(180,cWhite) and Flip create a mirror image!? Flip may be correct but not Rotate. This happens on desktop and device with both versions.
__________________
Thanks for all
wolfgang
___________________
Desktop: Dual Core 3.0 GHz, Win7
Device: IPAQ 3970 WM 2003, Asus 632N WM5, HTC 3650 Cruise
GPS: iblue 747
Reply With Quote
  #29 (permalink)  
Old 11-18-2008, 01:43 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 wolfgang View Post
Flip may be correct but not Rotate.
Flip is correct but Rotate 180 isn't. Sorry, bad attempt at optimisation . I'll soon release version 1.2 with this corrected, all the rotations slightly more optimised and a couple of other changes and additions.
Reply With Quote
  #30 (permalink)  
Old 11-18-2008, 02:53 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

Wolfgang. Please check this interim version out before I finalise the next release. I have fixed the rotate and added a new rotate method, Rotate180.
Attached Files
File Type: zip ImageLibEx1.12.zip (18.0 KB, 13 views)
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
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 12:23 PM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 10:22 AM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM
ImageLibEx? agraham Basic4ppc Wishlist 2 11-05-2007 02:15 PM
ImageLibeX Error XerVision Questions (Windows Mobile) 8 08-27-2007 07:14 PM


All times are GMT. The time now is 02:00 AM.


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