1. win32lib and copyToTrueColorBitmapFile

Any special requirements for the control containing an image that would cause copyToTrueColorBitmapFile to return 0.

This works just fine.. returns 0.. bmpImgBox is a Group.

 
result = copyToTrueColorBitmapFile ( bmpImgBox, name, bmpx, bmpy+9, bmpx2, bmpy2-10 ) 
 

This returns 1... ChartWin is a normal window

	 
result = copyToTrueColorBitmapFile ( ChartWin, "C:\\chartwin.bmp",1,1,800,600) 
 
new topic     » topic index » view message » categorize

2. Re: win32lib and copyToTrueColorBitmapFile

C:\ does not by default have write permissions. Try C:\test\Mybitmap.bmp, if that works you have good reason to avoid writing directly to C:\ as any users would hit the same problem.

new topic     » goto parent     » topic index » view message » categorize

3. Re: win32lib and copyToTrueColorBitmapFile

Thanks petelomax.. will give it a try.

new topic     » goto parent     » topic index » view message » categorize

4. Re: win32lib and copyToTrueColorBitmapFile

Fixed the problem...

found that copyToTrueColorBitmapFile will save a pixmap and a lot faster than the screen

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu