on mac the handle points to a gworld ptr... from there you'll need to get the base address which refers to the actual pixmap data. i have a wrapper for gworld access on mac, and i can post it to my blog next week sometime (moved this last weekend, have to find a place to put the peanut butter before i setup the computer).

mike
--
Mike Woodworth
[EMAIL PROTECTED]



On Jul 10, 2006, at 4:10 PM, Phil M wrote:

Is there a way to manipulate/access the individual pixels of a Picture using the Handle property?

I would like to access the raw picture data with a MemoryBlock, but I don't know how to convert the pointer returned from the Graphics.Handle into a MemoryBlock.

Dim g As Graphics = p.Graphics // assume p is passed as function parameter
  Dim m As MemoryBlock

  #If TargetWindows
    ?? = g.Handle(HandleTypeHDC)
  #Elseif TargetMacOS
    ?? = g.Handle(HandleTypeCGrafPtr)
  #Endif     // Linux not supported

What can I do to get the Handle into a MemoryBlock?
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to