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
  #11 (permalink)  
Old 10-23-2008, 06:33 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

Looking closely at that error you have a typo. You are missing the drawlines method after "drawer."
Reply With Quote
  #12 (permalink)  
Old 10-23-2008, 07:59 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 918
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Checking slowly - I found it in this line:

drawer.(pen.Value, routePoints())

which should be:

drawer.drawlines(pen.Value, routePoints())





Thanks

And everything works fine now !
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 10-23-2008 at 09:13 PM.
Reply With Quote
  #13 (permalink)  
Old 10-30-2008, 01:28 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

Hi Andrew,

I am beginning to use your ImageExLib.

I found some typos for the DrawerEx object:
StringHeight (string As String, FontSize As Single)
StringWidth(string As String, FontSize As Single)

should be
StringHeight (string As String)
StringWidth(string As String)

If the need to declare the points array as Int32 remains in the future, it would be interesting to have a mention on it in the help file.
Dim Points(n,2) as Int32

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #14 (permalink)  
Old 10-30-2008, 01:48 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

Thanks Klaus, I've amended the help for the next version accordingly. That was quite a big help file to put together and proof read so I wouldn't be surprised if there are other cut and paste type errors waiting for someone to notice them.
Reply With Quote
  #15 (permalink)  
Old 11-06-2008, 04:59 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

Hi Andrew,

In using the ImageExLib I found another typo in the help file.

in the help file this line
DrawImage1 (image As Image, rectSrc As Rectangle, rectDest As Rectangle, transparent As Boolean)

the program wants this:
DrawImage (image As Image, rectSrc As Rectangle, rectDest As Rectangle, transparent As Boolean)

In the ImageLib it is DrawImag1 which one do you want to use ?

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #16 (permalink)  
Old 11-06-2008, 05:23 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
In the ImageLib it is DrawImag1 which one do you want to use ?
I named it DrawImage deliberately seeing as there is only a single method of that name. I suspect that in the past ImageLib was intended/had a second DrawImage method but actually only ended up with one.
Reply With Quote
  #17 (permalink)  
Old 11-06-2008, 06:08 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 am not sure if you noticed that in the help file of the ImageExLib the text is DrawImage1 but should therefore be DrawImage .
I send this once more to make it sure.

Another question, I am almost sure that it is not the case but ask it even so. Can the dimensions od the dashes and or dots in the lines be changed for a given linewidth? They change with the linewidth, because with a width of 1 pixel oblique lines don't look that nice.

Joined 2 screenshots with widths of 1,2 and 3.

Best regards.
Attached Images
File Type: jpg Lines_1.jpg (22.6 KB, 35 views)
File Type: jpg Lines_2.jpg (26.2 KB, 29 views)
File Type: jpg Lines_3.jpg (27.5 KB, 33 views)
__________________
Klaus
Switzerland

Last edited by klaus : 11-15-2008 at 11:08 AM.
Reply With Quote
  #18 (permalink)  
Old 11-06-2008, 06:34 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
I send this once more to make it sure.
Yes I did thanks, I've amended the help file for any future release.

Quote:
Can the dimensions od the dashes and or dots in the lines be changed for a given linewidth?
On the desktop only yes, by a Pen property, DashPattern, that could probably be set by the Door library.

Drawing on the device is somewhat different to the desktop. That is why there are different way of rotating fonts on desktop and device. I tried to make the desktop and device libraries reasonably compatible so that what drew on the desktop would more or less draw on the device.

I was going to look at an "ImageLibPlus" for the desktop that took advantage of the far superior graphics on the desktop but I haven't done anything yet as I got sidetracked by GPS software.
Reply With Quote
  #19 (permalink)  
Old 11-06-2008, 09: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, I will have a look at it. It's for a desktop only program.

Best regards.
__________________
Klaus
Switzerland
Reply With Quote
  #20 (permalink)  
Old 11-15-2008, 10:37 AM
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

Hello agraham!it's very-veru good lib but i not find one metod...this metod i'm find in all libs but nothihg...
How can i rotate image for some degrees?for example 37 degrees?
__________________
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
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:13 AM.


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