Home
last modified time | relevance | path

Searched refs:fBitmap (Results 1 – 25 of 132) sorted by relevance

123456

/haiku/src/kits/translation/
H A DBitmapStream.cpp26 fBitmap = bitmap; in BBitmapStream()
32 fBitmap = NULL; in BBitmapStream()
37 if (fBitmap != NULL && fBitmap->InitCheck() == B_OK) { in BBitmapStream()
39 fHeader.bounds = fBitmap->Bounds(); in BBitmapStream()
40 fHeader.rowBytes = fBitmap->BytesPerRow(); in BBitmapStream()
41 fHeader.colors = fBitmap->ColorSpace(); in BBitmapStream()
51 fBitmap = NULL; in BBitmapStream()
58 delete fBitmap; in ~BBitmapStream()
68 if (fBitmap == NULL) in ReadAt()
83 source = (reinterpret_cast<uint8 *>(fBitmap->Bits())) + pos - in ReadAt()
[all …]
/haiku/src/apps/processcontroller/
H A DAutoIcon.cpp19 delete fBitmap; in ~AutoIcon()
26 if (fBitmap != NULL) in Bitmap()
27 return fBitmap; in Bitmap()
30 fBitmap = new BBitmap(BRect(BPoint(0, 0), in Bitmap()
35 if (BNodeInfo::GetTrackerIcon(&ref, fBitmap, (icon_size)-1) != B_OK) { in Bitmap()
37 genericAppType.GetIcon(fBitmap, (icon_size)(fBitmap->Bounds().IntegerWidth() + 1)); in Bitmap()
40 fBitmap = new BBitmap(BRect(BPoint(0, 0), in Bitmap()
43 fBitmap->SetBits(fbits, 256, 0, B_CMAP8); in Bitmap()
45 return fBitmap; in Bitmap()
/haiku/src/servers/app/drawing/
H A DBitmapDrawingEngine.cpp11 fBitmap(NULL) in BitmapDrawingEngine()
44 if (fBitmap != NULL && newWidth > 0 && newHeight > 0 in SetSize()
45 && fBitmap->Bounds().IntegerWidth() >= newWidth in SetSize()
46 && fBitmap->Bounds().IntegerHeight() >= newHeight) { in SetSize()
61 fBitmap.SetTo(new(std::nothrow) UtilityBitmap(BRect(0, 0, newWidth - 1, in SetSize()
63 if (!fBitmap.IsSet()) in SetSize()
66 fHWInterface.SetTo(new(std::nothrow) BitmapHWInterface(fBitmap)); in SetSize()
75 fClipping.Set(fBitmap->Bounds()); in SetSize()
94 if (result->ImportBits(fBitmap->Bits(), fBitmap->BitsLength(), in ExportToBitmap()
95 fBitmap->BytesPerRow(), fBitmap->ColorSpace()) != B_OK) { in ExportToBitmap()
H A DBBitmapBuffer.cpp9 : fBitmap(bitmap) in BBitmapBuffer()
23 if (fBitmap.IsSet()) in InitCheck()
24 ret = fBitmap->InitCheck(); in InitCheck()
33 return fBitmap->ColorSpace(); in ColorSpace()
42 return fBitmap->Bits(); in Bits()
51 return fBitmap->BytesPerRow(); in BytesPerRow()
60 return fBitmap->Bounds().IntegerWidth() + 1; in Width()
69 return fBitmap->Bounds().IntegerHeight() + 1; in Height()
H A DBitmapBuffer.cpp13 : fBitmap(bitmap) in BitmapBuffer()
28 if (fBitmap) in InitCheck()
29 ret = fBitmap->IsValid() ? B_OK : B_ERROR; in InitCheck()
38 return fBitmap->ColorSpace(); in ColorSpace()
47 return fBitmap->Bits(); in Bits()
56 return fBitmap->BytesPerRow(); in BytesPerRow()
65 return fBitmap->Width(); in Width()
74 return fBitmap->Height(); in Height()
/haiku/src/tests/servers/app/tiled_bitmap_test/
H A DTiledBitmapTest.cpp28 BBitmap* fBitmap; member in View
35 fBitmap = new BBitmap(BRect(0, 0, 5, 5), B_RGBA32); in View()
52 fBitmap->SetBits((void*)data, sizeof(data), 0, B_RGBA32); in View()
58 delete fBitmap; in ~View()
65 DrawTiledBitmap(fBitmap, BRect(10, 10, 60, 60), BPoint(1, 1)); in Draw()
66 DrawTiledBitmap(fBitmap, BRect(10, 60, 60, 110), BPoint(3, 3)); in Draw()
67 DrawTiledBitmap(fBitmap, BRect(10, 110, 60, 160)); in Draw()
68 DrawBitmap(fBitmap, fBitmap->Bounds(), BRect(60, 10, 110, 60)); in Draw()
/haiku/src/kits/shared/
H A DBitmapButton.cpp21 fBitmap(BTranslationUtils::GetBitmap(resourceName)), in BBitmapButton()
31 fBitmap(new BBitmap(BRect(0, 0, width - 1, height - 1), 0, format)), in BBitmapButton()
34 memcpy(fBitmap->Bits(), bits, fBitmap->BitsLength()); in BBitmapButton()
40 delete fBitmap; in ~BBitmapButton()
48 if (fBitmap) { in MinSize()
49 min.width = fBitmap->Bounds().Width(); in MinSize()
50 min.height = fBitmap->Bounds().Height(); in MinSize()
90 if (fBitmap == NULL) in Draw()
100 BRect bitmapBounds(fBitmap->Bounds()); in Draw()
107 DrawBitmap(fBitmap, bitmapLocation); in Draw()
/haiku/src/apps/overlayimage/
H A DOverlayView.cpp34 fBitmap = NULL; in OverlayView()
67 fBitmap = new BBitmap(archive); in OverlayView()
73 delete fBitmap; in ~OverlayView()
83 if (fBitmap) in Draw()
84 DrawBitmap(fBitmap, B_ORIGIN); in Draw()
102 delete fBitmap; in MessageReceived()
103 fBitmap = BTranslationUtils::GetBitmap(path.Path()); in MessageReceived()
105 if (fBitmap != NULL) { in MessageReceived()
111 BRect rect = fBitmap->Bounds(); in MessageReceived()
155 if (fBitmap) { in Archive()
[all …]
/haiku/src/servers/app/drawing/Painter/bitmap_painter/
H A DBitmapPainter.cpp50 fBitmap.attach(bitmap->Bits(), bitmap->Width(), bitmap->Height(), in BitmapPainter()
87 drawNoScale.Draw(fPainter->fInternal, fBitmap, 1, fOffset, in Draw()
93 drawNoScale.Draw(fPainter->fInternal, fBitmap, 1, fOffset, in Draw()
100 drawNoScale.Draw(fPainter->fInternal, fBitmap, 4, fOffset, in Draw()
116 drawNoScale.Draw(fPainter->fInternal, fBitmap, 4, fOffset, in Draw()
125 drawNoScale.Draw(fPainter->fInternal, fBitmap, 4, fOffset, in Draw()
134 drawNoScale.Draw(fPainter->fInternal, fBitmap, 4, fOffset, in Draw()
146 fBitmap, fOffset, fScaleX, fScaleY, fDestinationRect); in Draw()
149 fBitmap, fOffset, fScaleX, fScaleY, fDestinationRect); in Draw()
161 fBitmap, fOffset, fScaleX, fScaleY, fDestinationRect); in Draw()
[all …]
/haiku/src/apps/resedit/
H A DResFields.cpp34 fBitmap = bitmap; in BitmapPreviewField()
40 delete fBitmap; in ~BitmapPreviewField()
47 if (fBitmap) { in DrawField()
49 BRect drawrect(fBitmap->Bounds().OffsetToCopy(rect.LeftTop())); in DrawField()
53 (fBitmap->Bounds().Width() * in DrawField()
54 (rect.Height() / fBitmap->Bounds().Height())); in DrawField()
58 parent->DrawBitmap(fBitmap, fBitmap->Bounds(), drawrect); in DrawField()
63 fBitmap->Bounds().IntegerWidth(), fBitmap->Bounds().IntegerHeight(), in DrawField()
64 (int32(fBitmap->BytesPerRow() / fBitmap->Bounds().Width()) * 8)); in DrawField()
82 fBitmap = BTranslationUtils::GetBitmap(&memio); in SetData()
/haiku/src/apps/tv/
H A DVideoNode.cpp85 , fBitmap(0) in VideoNode()
351 if (fBitmap) { in HandleBuffer()
354 if (B_OK == fBitmap->LockBits()) { in HandleBuffer()
361 overlay_copy(fBitmap->Bounds().IntegerHeight() + 1, in HandleBuffer()
362 fBitmap->Bits(), fBitmap->BytesPerRow(), in HandleBuffer()
367 fBitmap->UnlockBits(); in HandleBuffer()
372 overlay_copy(fBitmap->Bounds().IntegerHeight() + 1, in HandleBuffer()
373 fBitmap->Bits(), fBitmap->BytesPerRow(), in HandleBuffer()
404 return fBitmap; in Bitmap()
436 ASSERT(fBitmap == 0); in CreateBuffers()
[all …]
/haiku/headers/private/kernel/
H A Dsmp.h63 inline uint32 Bits(uint32 index) const { return fBitmap[index];} in Bits()
68 uint32 fBitmap[kArraySize]; variable
112 memset(fBitmap, 0, sizeof(fBitmap)); in CPUSet()
119 memset(fBitmap, 0, sizeof(fBitmap)); in ClearAll()
126 memset(fBitmap, ~uint8(0), sizeof(fBitmap)); in SetAll()
133 int32* element = (int32*)&fBitmap[cpu / kArrayBits]; in SetBit()
141 int32* element = (int32*)&fBitmap[cpu / kArrayBits]; in ClearBit()
149 int32* element = (int32*)&fBitmap[cpu / kArrayBits]; in SetBitAtomic()
157 int32* element = (int32*)&fBitmap[cpu / kArrayBits]; in ClearBitAtomic()
165 int32* element = (int32*)&fBitmap[cpu / kArrayBits]; in GetBit()
[all …]
/haiku/src/tests/servers/app/bitmap_bounds/
H A Dmain.cpp19 BBitmap* fBitmap; member in TestView
32 fBitmap(new BBitmap(BRect(0 + LEFT_OFFSET, in TestView()
41 uint8* bits = (uint8*)fBitmap->Bits(); in TestView()
42 uint32 width = fBitmap->Bounds().IntegerWidth() + 1; in TestView()
43 uint32 height = fBitmap->Bounds().IntegerHeight() + 1; in TestView()
44 uint32 bpr = fBitmap->BytesPerRow(); in TestView()
95 BRect bitmap = fBitmap->Bounds(); in Draw()
98 DrawBitmap(fBitmap, bitmap, view); in Draw()
/haiku/src/add-ons/media/media-add-ons/videowindow/
H A DVideoNode.cpp34 , fBitmap(0) in VideoNode()
53 , fBitmap(0) in VideoNode()
267 fInput.format.u.raw_video.display.format = fBitmap->ColorSpace(); in Connected()
333 if (fBitmap && fWindow && fVideoView) { in HandleBuffer()
336 if (B_OK == fBitmap->LockBits()) { in HandleBuffer()
337 memcpy(fBitmap->Bits(), buffer->Data(), fBitmap->BitsLength()); in HandleBuffer()
338 fBitmap->UnlockBits(); in HandleBuffer()
341 memcpy(fBitmap->Bits(), buffer->Data(), fBitmap->BitsLength()); in HandleBuffer()
370 return fBitmap; in Bitmap()
396 ASSERT(fBitmap == 0); in CreateBuffers()
[all …]
/haiku/src/bin/bfs_tools/lib/
H A DBitmap.cpp20 fBitmap(NULL), in Bitmap()
30 fBitmap(NULL), in Bitmap()
41 free(fBitmap); in ~Bitmap()
49 free(fBitmap); in SetTo()
56 fBitmap = (uint32 *)malloc(fByteSize); in SetTo()
57 if (!fBitmap) in SetTo()
74 if ((size = disk->ReadAt(disk->BlockSize(), fBitmap, fByteSize)) < B_OK) { in SetTo()
75 free(fBitmap); in SetTo()
76 fBitmap = NULL; in SetTo()
89 if (compare & fBitmap[i]) in SetTo()
[all …]
/haiku/src/kits/bluetooth/UI/
H A DBluetoothIconView.cpp15 BBitmap* BluetoothIconView::fBitmap = NULL; member in Bluetooth::BluetoothIconView
23 fBitmap = new BBitmap(BRect(0, 0, 64, 64), 0, B_RGBA32); in BluetoothIconView()
31 BIconUtils::GetVectorIcon(tempIcon, tempSize, fBitmap); in BluetoothIconView()
49 delete fBitmap; in ~BluetoothIconView()
56 this->DrawBitmap(fBitmap); in Draw()
/haiku/src/tests/servers/app/painter/
H A DBitmapView.cpp13 fBitmap(bitmap) in BitmapView()
22 delete fBitmap; in ~BitmapView()
29 if (fBitmap) { in Draw()
30 if (fBitmap->ColorSpace() == B_RGBA32) { in Draw()
37 DrawBitmap(fBitmap, Bounds().LeftTop()); in Draw()
/haiku/src/add-ons/tracker/zipomatic/
H A DZipOMaticActivity.cpp21 fBitmap(NULL), in Activity()
37 delete fBitmap; in ~Activity()
117 BRect bitmapRect = fBitmap->Bounds(); in Draw()
120 delete fBitmap; in Draw()
126 DrawBitmap(fBitmap); in Draw()
133 if (fBitmap->Lock()) { in _DrawOnBitmap()
134 BRect bounds = fBitmap->Bounds(); in _DrawOnBitmap()
173 fBitmap->Unlock(); in _DrawOnBitmap()
182 fBitmap = new BBitmap(rect, B_RGBA32, true); in _CreateBitmap()
184 fBitmap->AddChild(fBitmapView); in _CreateBitmap()
[all …]
/haiku/src/apps/soundrecorder/
H A DScopeView.cpp30 fBitmap(NULL), in ScopeView()
72 DrawBitmapAsync(fBitmap, BPoint(0, 0)); in Draw()
332 if (fBitmap != NULL && fBitmapView != NULL) { in InitBitmap()
333 fBitmap->RemoveChild(fBitmapView); in InitBitmap()
336 if (fBitmap) in InitBitmap()
337 delete fBitmap; in InitBitmap()
341 fBitmap = new BBitmap(rect, BScreen().ColorSpace(), true); in InitBitmap()
342 memset(fBitmap->Bits(), 0, fBitmap->BitsLength()); in InitBitmap()
347 fBitmap->AddChild(fBitmapView); in InitBitmap()
358 fBitmap->Lock(); in RenderBitmap()
[all …]
/haiku/src/add-ons/screen_savers/icons/
H A DIconDisplay.cpp36 fBitmap(NULL) in IconDisplay()
43 delete fBitmap; in ~IconDisplay()
50 delete fBitmap; in Run()
52 fBitmap = new BBitmap(BRect(0, 0, frame.Width(), frame.Height()), 0, in Run()
54 if (BIconUtils::GetVectorIcon(icon->data, icon->size, fBitmap) != B_OK) in Run()
134 view->DrawBitmap(fBitmap, BPoint(fFrame.left, fFrame.top)); in DrawOn()
/haiku/src/apps/icon-o-matic/gui/
H A DIconView.cpp20 fBitmap(new BBitmap(frame.OffsetToCopy(B_ORIGIN), 0, B_RGB32)), in IconView()
22 fRenderer(new IconRenderer(fBitmap)), in IconView()
23 fDirtyIconArea(fBitmap->Bounds()), in IconView()
40 delete fBitmap; in ~IconView()
65 DrawBitmap(fBitmap, B_ORIGIN); in Draw()
117 fDirtyIconArea = fBitmap->Bounds(); in SetIconBGColor()
/haiku/src/tests/kits/interface/bbitmap/
H A DDrawBitmapTest.cpp20 , fBitmap(bitmap) in BitmapView()
26 delete fBitmap; in ~BitmapView()
31 DrawBitmap(fBitmap); in Draw()
35 BBitmap* fBitmap; member in BitmapView
/haiku/src/apps/haikudepot/ui_generic/
H A DBitmapHolder.cpp11 fBitmap(bitmap) in BitmapHolder()
18 delete fBitmap; in ~BitmapHolder()
25 return fBitmap; in Bitmap()
/haiku/src/apps/diskprobe/
H A DTypeEditors.cpp134 BBitmap* fBitmap; member in ImageView
850 fBitmap(NULL), in ImageView()
897 delete fBitmap; in ~ImageView()
942 if (fBitmap != NULL) { in Draw()
944 DrawBitmap(fBitmap, BPoint((Bounds().Width() - fBitmap->Bounds().Width()) / 2, 0)); in Draw()
970 if (fBitmap != NULL && (fEditor.Type() == B_MINI_ICON_TYPE in _UpdateImage()
973 fBitmap->SetBits(data, fEditor.FileSize(), 0, B_CMAP8); in _UpdateImage()
977 if (fBitmap != NULL && fEditor.Type() == B_VECTOR_ICON_TYPE in _UpdateImage()
978 && fScaleSlider->Value() * 8 - 1 == fBitmap->Bounds().Width()) { in _UpdateImage()
980 (size_t)fEditor.FileSize(), fBitmap) == B_OK) { in _UpdateImage()
[all …]
/haiku/src/tests/servers/app/drawing_debugger/
H A DDrawingDebugger.cpp43 BBitmap * fBitmap; member in DrawingDebuggerView
99 fBitmap = new BBitmap(frame, B_RGB32, true); in DrawingDebuggerView()
102 fBitmap->AddChild(fOffscreenView); in DrawingDebuggerView()
116 delete fBitmap; in ~DrawingDebuggerView()
123 DrawBitmap(fBitmap, updateRect, updateRect); in Draw()
157 view->fBitmap->Lock(); in _PortListener()
161 view->fBitmap->Unlock(); in _PortListener()

123456