[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QPixmap and fromMacCGImageRef
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2009-02-27 8:52:55
Message-ID: c6bc7ca1daeb19b1f0ee2b7f15250f85 () localhost
[Download RAW message or body]

On Thu, 26 Feb 2009 21:20:29 -0600, Donald Atkins <datkins23@gmail.com>
wrote:
> I noticed that the fromMacCGImageRef method (mac only)  for QPixmap is  
> not available in PyQt. It looks like fromWinHBITMAP is looking through  
> the .sip files. Is this method easy to add? I'm combining some pyobc  
> calls to qucktime and was trying to use fromMacCGImageRef to pass pyqt  
> an movie frame.

The problem is how to wrap the CGImageRef type as it is opaque and passed
by value.

You might be lucky and adding the following to qpixmap.sip might work...

class CGImageRef;
static QPixmap fromMacCGImageRef(CGImageRef image);

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic