Search found 9 matches

by hariprasath
Fri Aug 03, 2018 3:09 pm
Forum: Platform Related Issues
Topic: DrawBitmap() fails on Memory DC
Replies: 5
Views: 926

Re: DrawBitmap() fails on Memory DC

Hello, Further to my post, I did some testing on this topic. Test - 1: using wxImage wxMemoryInputStream datastream(bmpdata,fileSize); //bmpdata - Monochrome bitmap file data with bitmap header wxImage img(datastream,wxBITMAP_TYPE_BMP); if (img.IsOk()) { wxBitmap *bmp = new wxBitmap(img, 1); if (bmp...
by hariprasath
Tue Jul 17, 2018 1:08 pm
Forum: Platform Related Issues
Topic: DrawBitmap() fails on Memory DC
Replies: 5
Views: 926

Re: DrawBitmap() fails on Memory DC

Hello Doublemax,

Yes, it seems memory DC is not fully supported for 1 bpp.

I am able to draw text, line, rectangle, ellipse but drawbitmap is failed even when i tried draw 1 bpp bitmap.

Thanks,
Hari
by hariprasath
Mon Jul 16, 2018 12:33 pm
Forum: Platform Related Issues
Topic: DrawBitmap() fails on Memory DC
Replies: 5
Views: 926

Re: DrawBitmap() fails on Memory DC

Hello doublemax,

Width: 576 Height: 1056
And, pBitmap->IsOk() returns 'true'.

Thanks,
Hari
by hariprasath
Mon Jul 16, 2018 11:38 am
Forum: Platform Related Issues
Topic: DrawBitmap() fails on Memory DC
Replies: 5
Views: 926

DrawBitmap() fails on Memory DC

Hello, My Environment: Ubuntu 14.04 + wxWidgets with Gtk2 I am trying draw bitmap image on Memory DC, at that time I am getting Gdk-WARNING Gdk-WARNING **: The gdk_draw_*_image require the drawable argument to have a specified colormap. All windows have a colormap, however, pixmaps only have colorma...
by hariprasath
Mon Jul 02, 2018 6:23 pm
Forum: Platform Related Issues
Topic: Need to read raw of wxBitmap (Monochrome 1bpp) in Linux-GTK2
Replies: 1
Views: 426

Need to read raw of wxBitmap (Monochrome 1bpp) in Linux-GTK2

Hello I was trying to read raw pixels data of wxBitmap (Monochrome - 1bpp).(Platform: Linux - GTK2) I had a discussion regarding this in Dev. forum. https://forums.wxwidgets.org/viewtopic.php?f=1&t=44813&p=185399#p185399 Is it possible to use GetPixmap() to read pixels data? or Does some other ways ...
by hariprasath
Mon Jul 02, 2018 6:15 pm
Forum: C++ Development
Topic: Using wxBitmap (Monochrome) in WxMemoryDC
Replies: 6
Views: 838

Re: Using wxBitmap (Monochrome) in WxMemoryDC

Thank you. I will check it
by hariprasath
Mon Jul 02, 2018 3:34 pm
Forum: C++ Development
Topic: Using wxBitmap (Monochrome) in WxMemoryDC
Replies: 6
Views: 838

Re: Using wxBitmap (Monochrome) in WxMemoryDC

Yes, the code will be running in Linux (GTK-2).
by hariprasath
Fri Jun 29, 2018 3:48 pm
Forum: C++ Development
Topic: Using wxBitmap (Monochrome) in WxMemoryDC
Replies: 6
Views: 838

Re: Using wxBitmap (Monochrome) in WxMemoryDC

Thanks for your reply. We are using wxWidgets in embedded device which has low RAM (64 MB). And, In my case I don't want to use 24 bit bitmap because it would create memory & performance issue. So, I would like to do 1. Memory DC with Monochrome bitmap (572*2500) 2. Should be able read bitmap pixels...
by hariprasath
Thu Jun 28, 2018 2:26 pm
Forum: C++ Development
Topic: Using wxBitmap (Monochrome) in WxMemoryDC
Replies: 6
Views: 838

Using wxBitmap (Monochrome) in WxMemoryDC

Hello, I am new to wxWidgets. I am using wxMemoryDC with monochrome wxBitmap for drawing. wxWidgets is built with GTK+. Below is my goal: 1. Create Monochrome bitmap - wxBitmap *pbmp = new wxBitmap (100,100,1); 2. Map with Memory DC - wxMemoryDC *pmDC = new wxMemoryDC (*pbmp); 3. Select object - pmD...