![]() |
|
|||||||
| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| Additional Libraries Users contributed libraries. This sub-forum is only available to licensed users. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
Looks great!
Small tip for new users: The simplest way to install it is to copy the following files to Basic4ppc libraries folder: ImageLibExDevice.dll (device library) ImageLibExDesktop.dll (desktop library) ImageLibExDevice.cs (required for merging) ImageLibExDesktop.cs (required for merging) ImageLibEx.chm (help file) The libraries folder is usually located under: C:\Program Files\Anywhere Software\Basic4ppc Desktop\Libraries |
|
||||
|
Hi Andrew,
I just discovered your new ImageLibEx, it is pretty good news. I have not yet 'played' with it, but will do it quite soon. It combines the functionalities of the form's drawing functions and the ImageLib ones and adds new welcomed functions in ONE library. That's great ! I found two typos in the help file. - In the list of objects in the left list Rectangle should be RectangleEx - In the drawer, the function RefreshForm2 (form As Form, x As Int32, y As Int32, width As Int32, height As Int32) should be RefreshForm2 (form As Form, rect As Rectangle) Best regards and congratulations for this great job.
__________________
Klaus Switzerland Last edited by klaus : 01-06-2009 at 08:12 PM. |
|
||||
|
Agraham
Thanks for this library ![]() I'm trying to use the drawlines and do not understand it, can you please check that the definition is correct : in the help file: DrawLines (pen As Pen, x1 As Int32, xy(n,2)) in the context menu its without the x1 anyway, I have two dimensional array name routepoints, I want to draw connected line from point 2 to 7 , how should i write it ? (the points are already defined in the array) DrawLines (pen.value, routepoints??????) ? Thanks
__________________
David Erez Ramat Hasharon, Israel |
|
||||
|
Sorry, that's a cut and paste error in the help, the x1 shouldn't be there. Look at lines 126 & 127 in the Main.DrawLine Sub for an example.
Code:
Points() = Array ( (10, 120), (200, 120), (200, 200), (10, 200)) BackDrawerEx.DrawLines(PenEx.Value, Points()) DrawLine(PenEx.Value, points(2,0), point(2,1), points(7,0), point7,1)) Last edited by agraham : 10-23-2008 at 03:11 PM. |
|
||||
|
OK, I see the problem now.
I can start it from the first point but I don't know how many points I have, and I can assign the value only inside a loop, not as an array declaration. I don't thing that array list can accept two dimensions ... The code goes like this: ... For i = a To b + 1 Point(i).x = (...some calculation) routepoints(i-a,0) = Point(i).x ' so it starts from 0 Point(i).y = (...some calculation) routepoints(i-a,1) = Point(i).y Next drawer.(pen.Value, routePoints()) ... In polygon Erel used two arraylists to define the coordinates: AddArraylist("alX") AddArraylist("alY") any suggestion ? Thanks
__________________
David Erez Ramat Hasharon, Israel |
|
||||
|
Why not?
Code:
Dim routepoints(0,0) ' in Globals ... ... Dim routepoints (b-a+2, 2) For i = a To b + 1 Point(i).x = (...some calculation) routepoints(i-a,0) = Point(i).x ' so it starts from 0 Point(i).y = (...some calculation) routepoints(i-a,1) = Point(i).y Next drawer.(pen.Value, routePoints()) ... |
|
||||
|
Ooops! The array should be Int32. I don't know why it not being Int32 might cause that error, I would expect a type error. If it persists post the bit of code that causes it.
Code:
Dim routepoints(0,0) As Int32 ' in Globals ... ... Dim routepoints (b-a+2, 2) As Int32 For i = a To b + 1 Point(i).x = (...some calculation) routepoints(i-a,0) = Point(i).x ' so it starts from 0 Point(i).y = (...some calculation) routepoints(i-a,1) = Point(i).y Next drawer.(pen.Value, routePoints()) ... |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Merging Outlook library and Phone library | Erel | Official Updates | 4 | 01-01-2010 09:18 AM |
| Door library (Beta) - Special library | Erel | Official Updates | 52 | 12-08-2008 05:03 PM |
| PhoneticAlgorithms Library (ex-StringComparison Library) | moster67 | Additional Libraries | 10 | 11-11-2008 07:46 PM |
| ImageLibEx? | agraham | Basic4ppc Wishlist | 2 | 11-05-2007 01:15 PM |
| ImageLibeX Error | XerVision | Questions & Help Needed | 8 | 08-27-2007 06:14 PM |