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.

GDI+Desktop graphics and printing library

Reply
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 02-10-2010, 05:09 PM
Senior Member
 
Join Date: Dec 2007
Posts: 149
Awards Showcase
Beta Tester Beta Tester 
Total Awards: 2
Default Error cs1525 during compilation

Hello AGraham,
I use GDI Desktop to save a Bitmap to a File like this:
BMapExCop.SaveImage(AppPath & "\Temp\Blob.jpg")
It works in the Editor even if the GDI Desktop Help references another syntax like this:
BMapExCop.SaveImage(PathName As String, Channel As String, Format As String)
During compilation I get the cs1525 error.
What is wrong?

Best regards

berndgoedecke
Attached Images
File Type: jpg CS1525.jpg (12.4 KB, 8 views)
Reply With Quote
  #12 (permalink)  
Old 02-10-2010, 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 berndgoedecke View Post
What is wrong?
There's nothing wrong. The method call should have a format parameter. The IDE isn't strict enough in its' checking, it really should give you an error. You don't get an error from the library because it defaults to JPG if it doesn't understand the format string, or lack of, given to it.
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
Reply With Quote
  #13 (permalink)  
Old 02-19-2010, 08:08 PM
Senior Member
 
Join Date: Dec 2007
Posts: 149
Awards Showcase
Beta Tester Beta Tester 
Total Awards: 2
Default BitBlit

Hello AGraham,
i've tried some kind of Syntax in the BitBlit-command:

BMapExCopM.Value = BMapExCopM.BitBlt(BMapExCop.Value, StrRec.Value, 0, 0, D=D<S )

or

BMapExCopM.Value = BMapExCop.BitBlt(BMapExCop.Value, StrRec.Value, 0, 0, D=D<S )

or

SRCCOPY = 13369376 '(&HCC0020)
BMapExCopM.Value = BMapExCopM.BitBlt(BMapExCop.Value, StrRec.Value, 0, 0, SRCCOPY)

or

SRCCOPY = 13369376 '(&HCC0020)
BMapExCopM.Value = BMapExCop.BitBlt(BMapExCop.Value, StrRec.Value, 0, 0, SRCCOPY)

but always appears the error "Raster op is not valid".
How this function operates?

Best regards

berndgoedecke
Reply With Quote
  #14 (permalink)  
Old 02-19-2010, 09:17 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

From the help

BitBlit(src As Image, srcrect As Rectangle, destleft As Int32, desttop As Int32, rasterop As String )

Also there is no return value from BitBlit

"The existing internal bitmap is modified."

try

BMapExCopM.BitBlt(BMapExCop.Value, StrRec.Value, 0, 0, "D=D<S")
__________________
Sorry, but I don't answer questions by PM or email.
Please post your queries in the forum.
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
Pretty printing library agraham Additional Libraries 68 07-14-2009 03:48 PM
printing capabilities Cableguy Basic4ppc Wishlist 15 03-18-2009 04:13 AM
printing and barcode printing help jchal Questions (Windows Mobile) 5 12-13-2008 06:52 AM
Desktop Help library agraham Additional Libraries 15 10-29-2008 04:33 PM
Graphics Library Nachtfalke Questions (Windows Mobile) 1 05-11-2007 01:50 PM


All times are GMT. The time now is 05:05 AM.


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