.. wxPython Phoenix documentation
This file was generated by Phoenix's sphinx generator and associated
tools, do not edit by hand.
Copyright: (c) 2011-2020 by Total Control Software
License: wxWindows License
.. include:: headings.inc
.. _wx.NativePixelData:
==========================================================================================================================================
|phoenix_title| **wx.NativePixelData**
==========================================================================================================================================
A class providing direct access to a :class:`wx.Bitmap`'s
internal data without alpha channel (``RGB``).
|
|class_hierarchy| Class Hierarchy
=================================
.. raw:: html

Inheritance diagram for class
NativePixelData:
|
|method_summary| Methods Summary
================================
================================================================================ ================================================================================
:meth:`~wx.NativePixelData.__init__`
:meth:`~wx.NativePixelData.GetPixels`
:meth:`~wx.NativePixelData.__bool__`
:meth:`~wx.NativePixelData.__nonzero__`
================================================================================ ================================================================================
|
|property_summary| Properties Summary
=====================================
================================================================================ ================================================================================
:attr:`~wx.NativePixelData.Pixels` See :meth:`~wx.NativePixelData.GetPixels`
================================================================================ ================================================================================
|
|api| Class API
===============
.. class:: wx.NativePixelData(PixelDataBase)
**Possible constructors**::
NativePixelData(bmp : Bitmap) -> None
NativePixelData(bmp : Bitmap, rect : Rect) -> None
NativePixelData(bmp : Bitmap, pt : Point, sz : Size) -> None
A class providing direct access to a :class:`wx.Bitmap`'s
internal data without alpha channel (``RGB``).
.. method:: __init__(self, *args, **kw)
|overload| **Overloaded Implementations:**
:html:`
`
**__init__** `(self, bmp : Bitmap)`
:param `bmp`:
:type `bmp`: :class:`Bitmap`
:rtype: `None`
:html:`
`
**__init__** `(self, bmp : Bitmap, rect : Rect)`
:param `bmp`:
:type `bmp`: :class:`Bitmap`
:param `rect`:
:type `rect`: :class:`Rect`
:rtype: `None`
:html:`
`
**__init__** `(self, bmp : Bitmap, pt : Point, sz : Size)`
:param `bmp`:
:type `bmp`: :class:`Bitmap`
:param `pt`:
:type `pt`: :class:`Point`
:param `sz`:
:type `sz`: :class:`Size`
:rtype: `None`
:html:`
`
.. method:: GetPixels(self)
:rtype: :ref:`wx.NativePixelData_Accessor`
.. method:: __bool__(self)
:rtype: `int`
.. method:: __nonzero__(self)
:rtype: `int`
.. attribute:: Pixels
See :meth:`~wx.NativePixelData.GetPixels`