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
  #81 (permalink)  
Old 03-03-2009, 03:56 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,459
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Andrew,

Quote:
What's wrong with

Rect1.New1(x-radius, y-radius, radius*2, radius*2)
DrawEllipse(Pen1.Value, Rect1.Value)
There is nothing wrong with that, I'm already using it.
For the circles on the forelayer I use Form.FCircle, and the wish was to have the equivalent function in the drawer.

At least the new FloodFill function would be of the biggest interest for me.

Thank you for your help and best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #82 (permalink)  
Old 03-04-2009, 01:18 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,459
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Andrew,

tsteward found an error with the DrawerEx when loading an image file with gif format, I get the same.

Code:
<font size="2"><font face="Courier New"><font size="2"><font face="Courier New">bmpImage.New1(</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">AppPath</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="#800000"><font face="Courier New"><font size="2"><font color="#800000"><font face="Courier New"><font size="2"><font color="#800000">"\Rose.gif"</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 size=
"2"><font face="Courier New">drwImage.New2(bmpImage.Value)</font></font>
</font></font>
Is this a bug or a DrawerEx limitation ?

Thank you in advance and best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #83 (permalink)  
Old 03-04-2009, 01: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

Quote:
Originally Posted by klaus View Post
[/size][/FONTIs this a bug or a DrawerEx limitation ?
Neither, it's a GDI+ limitation. You can't draw on a Bitmap derived from an image that uses a colour palette.
Reply With Quote
  #84 (permalink)  
Old 03-04-2009, 02:05 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,459
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Thanks Andrew,

We will exclude the gif format for loading images.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #85 (permalink)  
Old 03-05-2009, 03:08 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

Version 1.5 has the three improvements requested by Klaus in post #79

FloodFill.Flood overwrites everything until a specified boundary color is found.

DrawerEX.DrawCircle draws a circle - (now there's a surprise!)

DrawerEX.FillCircle draws a filled circle.
Reply With Quote
  #86 (permalink)  
Old 03-05-2009, 04:05 PM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,459
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Hi Andrew, you are really great !

The new functions are already included in the Draw program.

Thank's for also having added the circle functions, so we find now in the Drawer also the Form's functions.

Thank you very much for your quick and valuable help.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #87 (permalink)  
Old 04-03-2009, 07:35 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!i'm find outflow of memory when using DrawImage method!
please,see this example.i'm compil it (optimizing) and observe of it in TaskManager and i'm see outflow every time,when i press button and image drawed =(((
__________________
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
  #88 (permalink)  
Old 04-03-2009, 08:16 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 Byak@ View Post
i'm find outflow of memory when using DrawImage method!
It's probably a bug in Basic4ppc, post #16 onwards of this thread has the details http://www.basic4ppc.com/forum/quest...problem-2.html Erel should fix this in the next release. You can minimise the problem by Bitmap.Dispose then AddObject as in the code fragment in post#16 of the thread. You will still lose a small amount of memory for each time you New the same Bitmap object until the bug is fixed but it probably won't be noticable.

The bug exists for any library object that is reinitialised by Newing it more than once, it just shows up "best" on Bitmaps as they use a lot of memory.
Reply With Quote
  #89 (permalink)  
Old 04-03-2009, 08:20 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Fully, Switzerland
Posts: 4,459
Awards Showcase
Forum Contributer Beta Tester Competition Winner 
Total Awards: 3
Default

Here is the modifyed version of your program.

Best regards.
__________________
Klaus
Switzerland

Beginner's Guide / User's Guide
Reply With Quote
  #90 (permalink)  
Old 04-03-2009, 05:43 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

Agrham, Klaus big thanks!
__________________
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 11:23 AM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 09:22 AM
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 (Windows Mobile) 8 08-27-2007 06:14 PM


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


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