Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
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.


dzImage Library


Reply
 
LinkBack Thread Tools Display Modes
  #31 (permalink)  
Old 01-02-2008, 10:23 AM
Senior Member
 
Join Date: May 2007
Posts: 152
Awards Showcase
Competition Winner 
Total Awards: 1
Default

Thank you Dimitris
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #32 (permalink)  
Old 01-02-2008, 10:59 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Default

Yasou Dimitris,
As far as I can see after a first quick check, all works as advertised.
In my app InvertImage also works for JPEGs (24-bit depth). The last
version appeared to have had a problem with GIFs only, which I can
no longer confirm. As the saying goes in Australia, "You're a bloody legend!"
Congrats on a big job. You have just added a few free drinks to your
accommodation
Cheers
Robert
Reply With Quote
  #33 (permalink)  
Old 01-15-2008, 07:05 PM
Senior Member
 
Join Date: May 2007
Posts: 152
Awards Showcase
Competition Winner 
Total Awards: 1
Default

Dimitris
the command "DrawImage(targetImage, sourceImage, x, y, width, height) " refuse to work for me. You say that it returns the image but the target is also defined as an argument.
I'll appreciate an example.
I tried to use it as a way to go around the fact that copying an image to a form resize it so that it fit within the form, while I need it to keep its size.
Thanks
David
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #34 (permalink)  
Old 01-16-2008, 11:43 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 516
Awards Showcase
Competition Winner 
Total Awards: 1
Default

Hello Dimitris,
I tried also the DrawImage function and didn't get a result. I agree with derez that an example would be of interest.

For the moment I use CopyImage
Sub HScroll_ValueChanged
ErrorLabel(DoneH)
MapX=HScroll.Value
bmpMap.Value=MapImage.CopyImage(ImageList1.Item(Ma p_I),MapX,MapY,GW,GH)
' bmpMap.Value=MapImage.DrawImage(frmMain.Image,Imag eList1.Item(Map_I),MapX,MapY,GW,GH)
frmMain.DrawImage(bmpMap.Value,GX0,GY0)
DoneH:
End Sub

CopyImage is OK
DrawImage not

The ErrorLabel(DoneH) is to avoid an Out of memory error.

I use it in a small program to display parts of a bigger bitmap (in my case maps) onto a defined area on the screen.

Best regards

Klaus
Switzerland
Reply With Quote
  #35 (permalink)  
Old 01-17-2008, 10:34 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,368
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Help file for dzImage library attached.

Klaus, derez - see the definition of DrawImage in the help. The folowing works for me.

Code:
	ImageClass.New1
	bmp1.new1(AppPath & "\one.jpg")
	bmp2.new1(AppPath & "\two.jpg")
 	bmp1.Value=ImageClass.DrawImage(bmp1.value,bmp2.value,40,40,20,20)
	form1.DrawImage(bmp1.Value,0,0)
Attached Files
File Type: zip dzImagehelp.zip (7.7 KB, 60 views)

Last edited by agraham : 01-17-2008 at 10:48 AM.
Reply With Quote
  #36 (permalink)  
Old 01-17-2008, 11:20 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 516
Awards Showcase
Competition Winner 
Total Awards: 1
Default

Thank you agraham,
Now I understand how DrawImage does work.
This library is really very usefull.

Klaus
Switzerland
Reply With Quote
  #37 (permalink)  
Old 01-18-2008, 03:32 PM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hello agraham,

I'd like to thank you very very much!!!
__________________
Dimitris Zacharakis
http://www.terracom.gr
Reply With Quote
  #38 (permalink)  
Old 01-20-2008, 11:48 PM
Knows the basics
 
Join Date: May 2007
Location: Daarsit
Posts: 94
Default

I may have missed it, but is there an way to use this (or another library if someone else knows of one) for simple picture processing (brightness, contrast, Gamma being the obvious examples).

I only want it for eye candy, so I'm trying not to write the function myself, working one pixel at a time.
Reply With Quote
  #39 (permalink)  
Old 01-21-2008, 12:38 PM
Senior Member
 
Join Date: May 2007
Posts: 152
Awards Showcase
Competition Winner 
Total Awards: 1
Default

Thanks Agraham
This made it sink down: "Returns the new combined image leaving the originals unchanged."

david
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #40 (permalink)  
Old 01-23-2008, 08:39 AM
dzt's Avatar
dzt dzt is offline
Basic4ppc Veteran
 
Join Date: May 2007
Location: Greece
Posts: 353
Awards Showcase
Forum Contributer 
Total Awards: 1
Default

Hello LineCutter,

As far as I know there is not such a library.
__________________
Dimitris Zacharakis
http://www.terracom.gr
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 48 07-18-2008 02:33 PM
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 03:38 PM


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


Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0