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
  #41 (permalink)  
Old 01-23-2008, 09:32 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 100
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thanks - I thought not. There do seem to be some around, but a quite an impressive price.
Reply With Quote
  #42 (permalink)  
Old 01-24-2008, 02:46 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by LineCutter View Post
simple picture processing (brightness, contrast, Gamma being the obvious examples)
First stab at an image processing library. Does contrast, brightness, B&W and colour invert. Have a play. Can easily add gamma correction in the future as it already linearises colour values for internal processing assuming the standard sRGB gamma of 2.2 and reapplies the same gamma on output. Applying a different gamma would be trivial.
Attached Files
File Type: zip ImageEdit1.1.zip (49.9 KB, 31 views)
Reply With Quote
  #43 (permalink)  
Old 01-24-2008, 09:59 PM
LineCutter's Avatar
Senior Member
 
Join Date: May 2007
Location: Daarsit
Posts: 100
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Give that man another award right now!

That was really quick, really helpful & really useful!
Reply With Quote
  #44 (permalink)  
Old 01-25-2008, 02:49 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Hugely updated version 1.2 of image processing library posted in its' own thread.
Reply With Quote
  #45 (permalink)  
Old 03-03-2008, 10:32 AM
alfcen's Avatar
Basic4ppc Veteran
 
Join Date: Apr 2007
Location: Okinawa, Ryukyu
Posts: 424
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Haisai Dimitris,
Long time no chat. Hope everything's going well for you.
Sneaky question, can your image library be modified to add
transitions, such as fade-in/out for slide shows?
Don't tell me you can do it.
Cheers
Robert
Reply With Quote
  #46 (permalink)  
Old 03-06-2008, 08:33 AM
brathbone's Avatar
Junior Member
 
Join Date: Feb 2008
Location: Rutherfordton, North Carolina
Posts: 19
Send a message via MSN to brathbone
Default

Hi dzt,

Any chance you'd be willing to add a JPEGtoByteArray (or similar) function? I am using dzImage to take screenshots and I need to send them over the network. So, essentially I am looking for a way to get JPEG data for a screenshot without writing to a file.

Thanks much for your work on this library.



All the best,
__________________
Brian Rathbone

Laptop: AMD Turion 64 Mobile 2ghz, 2GB RAM, Dual GeForce Go 7900 GTX 768MB SLI, Dual 200GB HDD at RAID0. XP Pro sp2

Device: Treo 750, WM6, 300mhz,128MB RAM, 2GB miniSD, 240x240 display
Reply With Quote
  #47 (permalink)  
Old 03-06-2008, 09:08 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 529
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Hi brathbone,
Have a look at this:

Embed and retrieve images in a data file

I think this is what you are looking for.

Best regards
Klaus
Switzerland
Reply With Quote
  #48 (permalink)  
Old 03-08-2008, 08:10 AM
brathbone's Avatar
Junior Member
 
Join Date: Feb 2008
Location: Rutherfordton, North Carolina
Posts: 19
Send a message via MSN to brathbone
Default

Hi Klaus,

Thanks for the response. I took a look at that thread but did not find a solution to my problem. I may have overlooked it.

Perhaps my questions is better explained with code. My goal is to take a screenshot, convert the BMP screenshot data to JPEG, then send the JPEG data across a TCP socket connection. I would like to avoid saving the image to a file in order to do the JPEG conversion. This is how my code looks for sending BMP data:

'BMPU is part of my custom protocol
header() = bit.StringToBytes("BMPU ",0,5)

'CRLF used to terminate commands and transfers
terminator() = bit.StringToBytes("</terminator>" & Chr(13) & Chr(10),0,15)

'Capture Screen Image
dzImageclass.ScreenCapture

'Send protocol command
stream.Writebytes (header())

'Send Image Data
stream.WriteBytes (imageclass.ImageToByteAray(imageclass.Image))

'Send Terminator
stream.WriteBytes(terminator())


What I would like to be able to do is something like this:

'Send Image Data
stream.WriteBytes (dzImageclass.ImageToJPEGByteAray(dzImageclass.Ima ge))


I appreciate any help you can offer.

Thanks again for your time,
__________________
Brian Rathbone

Laptop: AMD Turion 64 Mobile 2ghz, 2GB RAM, Dual GeForce Go 7900 GTX 768MB SLI, Dual 200GB HDD at RAID0. XP Pro sp2

Device: Treo 750, WM6, 300mhz,128MB RAM, 2GB miniSD, 240x240 display
Reply With Quote
  #49 (permalink)  
Old 03-08-2008, 09:14 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,470
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Try this Brian. The only way (native to .NET) to get a JPG is to save a bitmap to a file or stream, you can't get access to the encoded bytes directly. This tiny library tries to save a bitmap to a stream.

EDIT :- Note that your device may not support saving a JPG. Not all do.
Attached Files
File Type: zip BitmapStreamSaver.zip (2.2 KB, 9 views)

Last edited by agraham : 03-08-2008 at 10:27 AM.
Reply With Quote
  #50 (permalink)  
Old 03-08-2008, 09:56 AM
klaus's Avatar
Basic4ppc Expert
 
Join Date: Oct 2007
Location: Switzerland
Posts: 529
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

In trying to use sahoops Screen Capture App, I have a problem on my device.
I found that there is a problem with the SaveImageXXX functions on my Qtek 9090.
I get the message below.
I have added a small test code.
On the device, I can even not load this code in B4PPC.

Does anyone know what is wrong, do I missing some part of .NET 2 ?

Thank you in advance.

Klaus
Switzerland
Attached Images
File Type: jpg Error.jpg (10.1 KB, 8 views)
Attached Files
File Type: zip TestSaveBMP.zip (15.2 KB, 6 views)

Last edited by klaus : 03-08-2008 at 02:28 PM.
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 11:43 PM.


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