wxWidgets / wxWidgets

Cross-Platform C++ GUI Library
https://www.wxwidgets.org/
5.75k stars 1.69k forks source link

bitmap format in clipboard not understood #20125

Closed wxtrac closed 2 years ago

wxtrac commented 21 years ago

Issue migrated from trac ticket # 760

component: old wxOSX/Carbon port | priority: normal

2003-01-31 07:22:54: kasplat created the issue


Mac OS X appears to transfer bitmap images around in the clipboard as TIFFs, at least that is what Grab and Preview seem to deal with. wxPython isn't able to deal with bitmap data in the clipboard.

For example, copying a selection using Grab and then running the attached clipbmp.py script results in the following errors (wxPython 2.4.0.2 with Python 2.3a1-2 build.

ka

22:11:09: Debug: C++ assertion "wxAssertFailure" failed in
../src/mac/bitmap.cpp(909): invalid bitmap Got bitmap of size: Traceback (most recent call last): File "clipbmp.py", line 29, in OnDoClip print "Got bitmap of size: ", (bmp.GetWidth(), bmp.GetHeight()) File
"//Library/Frameworks/Python.framework/Versions/2.3/lib /python2.3/site- packages/wxPython/gdi.py", line 62, in GetWidth val = apply(gdic.wxBitmap_GetWidth,(self,) + _args, _kwargs) wxPython.wxc.wxPyAssertionError: C++ assertion "wxAssertFailure" failed
in ../src/mac/bitmap.cpp(909): invalid bitmap

wxtrac commented 21 years ago

2003-01-31 07:24:08: kasplat uploaded file clipbmp.py (1.2 KiB)

shows bitmap problem with clipboard data

wxtrac commented 21 years ago

2003-02-02 17:13:20: @csomor commented


added clipboard support to 2.4 in a binary compatible way