Searched refs:bitmap (Results 1 - 25 of 275) sorted by relevance

1234567891011

/haiku/src/apps/haiku3d/texture/
H A DBitmapTexture.cpp18 BitmapTexture::BitmapTexture(BBitmap* bitmap) argument
22 _Load(bitmap);
32 BitmapTexture::_Load(BBitmap* bitmap) { argument
33 if (bitmap == NULL)
41 (int) bitmap->Bounds().Width() + 1,
42 (int) bitmap->Bounds().Height() + 1,
44 bitmap->Bits());
48 fId, (int32) bitmap->Bounds().Width(),
49 (int32) bitmap->Bounds().Height(),
50 8 * bitmap
[all...]
H A DBitmapTexture.h17 BitmapTexture(BBitmap* bitmap);
21 void _Load(BBitmap* bitmap);
/haiku/src/preferences/time/
H A DBitmaps.cpp20 ReplaceTransparentColor(BBitmap* bitmap, rgb_color with) argument
23 ASSERT(bitmap->ColorSpace() == B_COLOR_8_BIT);
28 uchar* bits = (uchar*)bitmap->Bits();
29 int32 bitsLength = bitmap->BitsLength();
/haiku/src/servers/app/
H A DBitmapManager.cpp44 //! The one and only bitmap manager for the server, created by the AppServer
78 \param bounds Size of the bitmap
79 \param space Color space of the bitmap
108 ServerBitmap* bitmap = new(std::nothrow) ServerBitmap(bounds, space, flags, local
110 if (bitmap == NULL) {
120 Overlay* overlay = new(std::nothrow) Overlay(hwInterface, bitmap,
129 clientData = (overlay_client_data*)bitmap->fClientMemory.Allocate(
136 bitmap->fMemory = &bitmap->fClientMemory;
137 bitmap
227 BitmapRemoved(ServerBitmap* bitmap) argument
251 ServerBitmap* bitmap = (ServerBitmap*)fOverlays.ItemAt(i); local
262 ServerBitmap* bitmap = (ServerBitmap*)fOverlays.ItemAt(i); local
280 ServerBitmap* bitmap = (ServerBitmap*)fOverlays.ItemAt(i); local
291 ServerBitmap* bitmap = (ServerBitmap*)fOverlays.ItemAt(i); local
[all...]
H A DOffscreenWindow.cpp26 OffscreenWindow::OffscreenWindow(ServerBitmap* bitmap, argument
28 : Window(bitmap->Bounds(), name,
31 fBitmap(bitmap),
H A DServerBitmap.cpp34 path (bitmap creation from the application), and don't cause any further
36 If a bitmap was allocated this way, both, the fAllocator and
45 the bitmap is destructed. This method is mainly used for cursors.
50 \param rect Size of the bitmap.
51 \param space Color space of the bitmap
52 \param flags Various bitmap flags to tweak the bitmap as defined in Bitmap.h
57 \param screen Screen assigned to the bitmap.
84 ServerBitmap::ServerBitmap(const ServerBitmap* bitmap) argument
91 if (bitmap) {
230 UtilityBitmap(const ServerBitmap* bitmap) argument
[all...]
H A DOffscreenServerWindow.cpp18 ServerBitmap* bitmap)
20 fBitmap(bitmap)
16 OffscreenServerWindow(const char *title, ServerApp *app, port_id clientPort, port_id looperPort, int32 handlerID, ServerBitmap* bitmap) argument
/haiku/src/add-ons/translators/wonderbrush/support/
H A Dbitmap_compression.cpp24 compress_bitmap_zlib(const BBitmap* bitmap, void** buffer, unsigned* size) argument
27 if (bitmap) {
28 Bytef* src = (Bytef*)bitmap->Bits();
29 uLong srcLength = bitmap->BitsLength();
39 // printf("zlib compressed %ld bytes bitmap into %d bytes (%f%%)\n",
67 BBitmap* bitmap = new BBitmap(frame, 0, format); local
68 if (bitmap->IsValid()) {
70 Bytef* dst = (Bytef*)bitmap->Bits();
71 uLongf dstLength = bitmap->BitsLength();
77 if (ret != Z_OK || dstLength != (uint32)bitmap
96 archive_bitmap(const BBitmap* bitmap, BMessage* into, const char* fieldName) argument
118 extract_bitmap(BBitmap** bitmap, const BMessage* from, const char* fieldName) argument
[all...]
H A Dbitmap_compression.h18 archive_bitmap(const BBitmap* bitmap, BMessage* into, const char* fieldName);
21 extract_bitmap(BBitmap** bitmap, const BMessage* from, const char* fieldName);
/haiku/src/apps/mediaplayer/media_node_framework/video/
H A DVideoTarget.cpp35 VideoTarget::SetBitmap(const BBitmap* bitmap) argument
38 fBitmap = bitmap;
/haiku/headers/private/interface/
H A DIcon.h25 status_t SetTo(const BBitmap* bitmap, uint32 flags = 0);
27 bool SetBitmap(BBitmap* bitmap, uint32 which);
30 status_t SetExternalBitmap(const BBitmap* bitmap,
40 static status_t UpdateIcon(const BBitmap* bitmap, uint32 flags,
42 static status_t SetIconBitmap(const BBitmap* bitmap,
49 static BBitmap* _ConvertToRGB32(const BBitmap* bitmap,
51 static status_t _TrimBitmap(const BBitmap* bitmap,
53 status_t _MakeBitmaps(const BBitmap* bitmap,
/haiku/src/kits/print/
H A DBeUtilsTranslation.cpp66 BPicture *BitmapToPicture(BView* view, BBitmap *bitmap) { argument
67 if (bitmap) {
69 view->DrawBitmap(bitmap);
75 BPicture *BitmapToGrayedPicture(BView* view, BBitmap *bitmap) { argument
76 if (bitmap) {
77 BRect rect(bitmap->Bounds());
79 view->DrawBitmap(bitmap);
/haiku/src/tests/kits/interface/bbitmap/
H A DDrawBitmapTest.cpp18 BitmapView(BBitmap* bitmap) argument
19 : BView(bitmap->Bounds(), "test view", B_FOLLOW_LEFT_TOP, B_WILL_DRAW)
20 , fBitmap(bitmap)
48 BBitmap* bitmap = new BBitmap(BRect(0, 0, 24, 24), B_GRAY1); local
52 assert(bitmap->BytesPerRow() == 4);
83 bitmap->SetBits(data, sizeof(data), 0, B_GRAY1);
85 BView* view = new BitmapView(bitmap);
/haiku/src/apps/haikudepot/ui_generic/
H A DSharedBitmap.cpp23 SharedBitmap::SharedBitmap(BBitmap* bitmap) argument
31 fBitmap[0] = bitmap;
190 BBitmap* bitmap = _LoadIconFromBuffer(fBuffer, fSize, size); local
192 if (bitmap == NULL)
193 bitmap = _LoadBitmapFromBuffer(fBuffer, fSize);
195 return bitmap;
207 BBitmap* bitmap = new BBitmap(BRect(0, 0, size - 1, size - 1), 0, B_RGBA32);
208 status = bitmap->InitCheck();
210 status = mimeType.GetIcon(bitmap, B_MINI_ICON);
213 delete bitmap;
227 BBitmap* bitmap = _LoadArchivedBitmapFromStream(stream); local
270 BBitmap* bitmap = new BBitmap(BRect(0, 0, size - 1, size - 1), 0, local
[all...]
/haiku/headers/libs/print/libprint/
H A DValidRect.h20 bool get_valid_rect(BBitmap *bitmap, RECT *rc);
/haiku/src/add-ons/print/drivers/gutenprint/
H A DGPBand.cpp10 GPBand::GPBand(BBitmap* bitmap, BRect validRect, BPoint where) argument
12 fBitmap(*bitmap),
/haiku/src/apps/soundrecorder/
H A DDrawingTidbits.cpp50 ReplaceColor(BBitmap *bitmap, rgb_color from, rgb_color to) argument
52 ASSERT(bitmap->ColorSpace() == B_CMAP8);
59 uchar *bits = (uchar *)bitmap->Bits();
60 int32 bitsLength = bitmap->BitsLength();
67 ReplaceTransparentColor(BBitmap *bitmap, rgb_color with) argument
69 ASSERT(bitmap->ColorSpace() == B_CMAP8);
75 uchar *bits = (uchar *)bitmap->Bits();
76 int32 bitsLength = bitmap->BitsLength();
/haiku/src/tests/kits/interface/menu/menuworld/
H A DBitmapMenuItem.cpp25 BitmapMenuItem::BitmapMenuItem(const char* name, const BBitmap& bitmap, argument
28 m_bitmap(bitmap.Bounds(), bitmap.ColorSpace())
33 m_bitmap.SetBits(bitmap.Bits(), bitmap.BitsLength(),
34 0, bitmap.ColorSpace());
/haiku/src/apps/patchbay/
H A DEndpointInfo.cpp103 BBitmap* bitmap = NULL; local
109 bitmap = new BBitmap(r, B_RGBA32);
111 bitmap) == B_OK) {
112 printf("Created vector icon bitmap\n");
113 return bitmap;
115 delete bitmap;
116 bitmap = NULL;
137 bitmap = new BBitmap(BRect(0, 0, bmapSize, bmapSize),
139 ASSERT((bitmap->BitsLength() == size));
140 memcpy(bitmap
[all...]
/haiku/src/kits/interface/
H A DIcon.cpp39 BIcon::SetTo(const BBitmap* bitmap, uint32 flags) argument
41 if (!bitmap->IsValid())
50 switch (bitmap->ColorSpace()) {
78 // trim the bitmap, if requested and the bitmap actually has alpha
82 if (bitmap->ColorSpace() == B_RGBA32) {
83 error = _TrimBitmap(bitmap,
86 BBitmap* rgb32Bitmap = _ConvertToRGB32(bitmap, true);
99 bitmap = trimmedBitmap;
105 error = _MakeBitmaps(bitmap, flag
121 SetBitmap(BBitmap* bitmap, uint32 which) argument
154 BBitmap* bitmap = new(std::nothrow) BBitmap(bounds, colorSpace); local
165 SetExternalBitmap(const BBitmap* bitmap, uint32 which, uint32 flags) argument
194 BBitmap* bitmap = new(std::nothrow) BBitmap(bitmapToClone); local
213 UpdateIcon(const BBitmap* bitmap, uint32 flags, BIcon*& _icon) argument
237 SetIconBitmap(const BBitmap* bitmap, uint32 which, uint32 flags, BIcon*& _icon) argument
265 _ConvertToRGB32(const BBitmap* bitmap, bool noAppServerLink) argument
282 _TrimBitmap(const BBitmap* bitmap, bool keepAspect, BBitmap*& _trimmedBitmap) argument
353 _MakeBitmaps(const BBitmap* bitmap, uint32 flags) argument
[all...]
/haiku/src/apps/screenshot/
H A DScreenshotApp.cpp46 BMessage bitmap; local
47 status = message->FindMessage("wholeScreen", &bitmap);
51 fUtility->wholeScreen = new BBitmap(&bitmap);
53 status = message->FindMessage("cursorBitmap", &bitmap);
57 fUtility->cursorBitmap = new BBitmap(&bitmap);
59 status = message->FindMessage("cursorAreaBitmap", &bitmap);
63 fUtility->cursorAreaBitmap = new BBitmap(&bitmap);
/haiku/src/add-ons/print/drivers/pcl6/
H A DRasterizer.cpp21 Rasterizer::SetBitmap(int x, int y, BBitmap* bitmap, int pageHeight) argument
26 BRect bounds = bitmap->Bounds();
40 if (!get_valid_rect(bitmap, &fBounds))
46 fBPR = bitmap->BytesPerRow();
47 fBits = (uchar*)bitmap->Bits();
/haiku/src/add-ons/kernel/file_systems/ntfs/libntfs/
H A Dbitmap.h2 * bitmap.h - Exports for bitmap handling. Originated from the Linux-NTFS project.
34 * - bitmap starts at bit = 0 and ends at bit = bitmap size - 1.
36 * size of the bitmap.
39 extern void ntfs_bit_set(u8 *bitmap, const u64 bit, const u8 new_value);
40 extern char ntfs_bit_get(const u8 *bitmap, const u64 bit);
41 extern char ntfs_bit_get_and_set(u8 *bitmap, const u64 bit, const u8 new_value);
46 * ntfs_bitmap_set_bit - set a bit in a bitmap
47 * @na: attribute containing the bitmap
[all...]
H A Dbitmap.c2 * bitmap.c - Bitmap handling code. Originated from the Linux-NTFS project.
43 #include "bitmap.h"
50 * @bitmap: field of bits
54 * Set the bit @bit in the @bitmap to @new_value. Ignore all errors.
56 void ntfs_bit_set(u8 *bitmap, const u64 bit, const u8 new_value) argument
58 if (!bitmap || new_value > 1)
61 bitmap[bit >> 3] &= ~(1 << (bit & 7));
63 bitmap[bit >> 3] |= (1 << (bit & 7));
68 * @bitmap: field of bits
71 * Get and return the value of the bit @bit in @bitmap (
74 ntfs_bit_get(const u8 *bitmap, const u64 bit) argument
90 ntfs_bit_get_and_set(u8 *bitmap, const u64 bit, const u8 new_value) argument
[all...]
/haiku/src/tests/kits/interface/flatten_picture/
H A DPictureTest.cpp63 BBitmap *bitmap = new BBitmap(frame, fColorSpace, true); local
64 AutoDelete<BBitmap> _bitmap(bitmap);
65 if (bitmap == NULL || bitmap->IsValid() == false || bitmap->InitCheck() != B_OK)
73 bitmap->Lock();
74 bitmap->AddChild(view);
75 // bitmap is locked during the life time of this object
107 // the result bitmap that does not accept views
136 BBitmap* bitmap local
145 BBitmap* bitmap = fBitmapFromPicture; local
155 BBitmap* bitmap = fBitmapFromRestoredPicture; local
[all...]

Completed in 183 milliseconds

1234567891011