Searched refs:bitmap (Results 26 - 50 of 295) sorted by relevance

1234567891011>>

/haiku/src/add-ons/translators/wonderbrush/
H A DCanvas.cpp148 BBitmap* bitmap = new BBitmap(fBounds, 0, B_RGBA32); local
149 if (!bitmap->IsValid()) {
150 delete bitmap;
154 // this bitmap is uninitialized, clear to black/fully transparent
155 memset(bitmap->Bits(), 0, bitmap->BitsLength());
156 Compose(bitmap, fBounds);
158 uint8* bits = (uint8*)bitmap->Bits();
159 uint32 bpr = bitmap->BytesPerRow();
160 uint32 width = bitmap
[all...]
H A DWonderBrushTranslator.cpp38 "image/x-be-bitmap",
58 "image/x-be-bitmap",
210 BBitmap* bitmap = wbImage->Bitmap(); local
211 if (!bitmap)
214 uint32 width = bitmap->Bounds().IntegerWidth() + 1;
215 uint32 height = bitmap->Bounds().IntegerHeight() + 1;
216 color_space format = bitmap->ColorSpace();
217 uint32 bytesPerRow = bitmap->BytesPerRow();
220 // Construct and write Be bitmap header
232 delete bitmap;
[all...]
/haiku/src/tests/kits/interface/bbitmap/
H A DSetBitsTester.cpp383 dump_bitmap(const BBitmap *bitmap)
385 BRect bounds = bitmap->Bounds();
388 printf("BBitmap: %ldx%ld, %x\n", width, height, bitmap->ColorSpace());
389 int32 bpr = bitmap->BytesPerRow();
390 const uint8 *bits = (const uint8*)bitmap->Bits();
408 BBitmap bitmap(bounds, initialData.space);
409 CHK(bitmap.InitCheck() == B_OK);
410 CHK(bitmap.Bounds() == bounds);
411 CHK(bitmap.BitsLength() == initialData.length);
412 memcpy(bitmap
[all...]
/haiku/headers/private/interface/
H A DBitmapPrivate.h26 Private(BBitmap* bitmap);
/haiku/src/add-ons/print/drivers/gutenprint/
H A DGPBand.h18 GPBand(BBitmap* bitmap, BRect validRect, BPoint where);
/haiku/src/apps/mediaplayer/media_node_framework/video/
H A DVideoTarget.h9 Until the next call to SetBitmap() the bitmap can be used -- thereafter
10 it is not allowed to use it any longer. Therefore the bitmap variable
32 virtual void SetBitmap(const BBitmap* bitmap);
/haiku/src/preferences/appearance/
H A DSysCursorAPI.h9 void set_syscursor(cursor_which which, const BBitmap *bitmap);
H A DCurView.cpp415 bitmap=NULL;
427 bitmap=bmp;
434 if(bitmap)
435 DrawBitmap(bitmap, drawrect);
449 delete bitmap;
450 bitmap=tmp;
457 drawrect=bitmap->Bounds();
458 if(r.Contains(bitmap->Bounds()))
461 offset=((r.IntegerWidth()-bitmap->Bounds().IntegerWidth()) >> 1)+5;
469 if(bitmap
[all...]
/haiku/src/servers/app/drawing/
H A DOverlay.h24 Overlay(HWInterface& interface, ServerBitmap* bitmap,
30 status_t Suspend(ServerBitmap* bitmap, bool needTemporary);
31 status_t Resume(ServerBitmap* bitmap);
59 status_t _AllocateBuffer(ServerBitmap* bitmap);
H A DBitmapBuffer.cpp12 BitmapBuffer::BitmapBuffer(ServerBitmap* bitmap) argument
13 : fBitmap(bitmap)
H A DBBitmapBuffer.cpp8 BBitmapBuffer::BBitmapBuffer(BBitmap* bitmap) argument
9 : fBitmap(bitmap)
/haiku/src/tests/kits/interface/menu/menuworld/
H A DBitmapMenuItem.h29 BitmapMenuItem(const char* name, const BBitmap& bitmap,
/haiku/src/libs/glut/
H A Dglutbitmap.h23 const GLubyte *bitmap; member in struct:__anon1823
/haiku/src/servers/app/
H A DOffscreenWindow.h22 OffscreenWindow(ServerBitmap* bitmap,
/haiku/src/apps/haikudepot/model/
H A DPackageIconRepository.h18 BitmapRef& bitmap) = 0;
H A DPackageScreenshotRepository.h41 status_t LoadScreenshot(const ScreenshotCoordinate& coord, BitmapRef* bitmap);
43 BitmapRef* bitmap);
/haiku/src/apps/icon-o-matic/import_export/bitmap/
H A DBitmapExporter.cpp41 // render icon into bitmap with given size and transparent background
48 BBitmap bitmap(BRect(0, 0, fSize - 1, fSize - 1),
51 status_t ret = bitmap.InitCheck();
55 IconRenderer renderer(&bitmap);
59 // renderer.Demultiply(&bitmap);
61 // save bitmap to translator
66 BBitmapStream bitmapStream(&bitmap);
/haiku/src/servers/app/font/
H A DFontEngine.cpp292 decompose_ft_bitmap_mono(const FT_Bitmap& bitmap, int x, int y, argument
295 const uint8* buf = (const uint8*)bitmap.buffer;
296 int pitch = bitmap.pitch;
297 sl.reset(x, x + bitmap.width);
300 buf += bitmap.pitch * (bitmap.rows - 1);
301 y += bitmap.rows;
304 for (unsigned int i = 0; i < bitmap.rows; i++) {
307 for (unsigned int j = 0; j < bitmap.width; j++) {
323 decompose_ft_bitmap_gray8(const FT_Bitmap& bitmap, in argument
366 decompose_ft_bitmap_subpix(const FT_Bitmap& bitmap, int x, int y, bool flip_y, Scanline& sl, ScanlineStorage& storage) argument
[all...]
/haiku/src/servers/app/drawing/interface/remote/
H A DRemoteMessage.cpp91 RemoteMessage::AddBitmap(const ServerBitmap& bitmap, bool minimal) argument
93 Add(bitmap.Width());
94 Add(bitmap.Height());
95 Add(bitmap.BytesPerRow());
98 Add(bitmap.ColorSpace());
99 Add(bitmap.Flags());
102 uint32 bitsLength = bitmap.BitsLength();
108 memcpy(fBuffer + fWriteIndex, bitmap.Bits(), bitsLength);
173 RemoteMessage::AddBitmap(const BBitmap& bitmap) argument
175 BRect bounds = bitmap
357 BBitmap *bitmap = new(std::nothrow) BBitmap( local
[all...]
/haiku/src/kits/shared/
H A DIconButton.cpp101 BBitmap* bitmap = fNormalBitmap; local
104 bitmap = fDisabledBitmap;
117 if (bitmap && bitmap->IsValid()) {
118 if (bitmap->ColorSpace() == B_RGBA32
119 || bitmap->ColorSpace() == B_RGBA32_BIG) {
124 - bitmap->Bounds().Width()) / 2.0 + 0.5);
126 - bitmap->Bounds().Height()) / 2.0 + 0.5);
127 DrawBitmap(bitmap, BPoint(x, y));
314 BBitmap bitmap(bitmapRec
381 SetIcon(const BBitmap* bitmap, uint32 flags) argument
449 BBitmap* bitmap = new(std::nothrow) BBitmap( local
585 BBitmap* bitmap = NULL; local
686 _MakeBitmaps(const BBitmap* bitmap) argument
[all...]
/haiku/src/apps/icon-o-matic/generic/gui/
H A DIconButton.cpp83 BBitmap* bitmap = fNormalBitmap; local
84 // adjust colors and bitmap according to flags
96 bitmap = fDisabledBitmap;
104 bitmap = fClickedBitmap;
109 bitmap = fDisabledClickedBitmap;
129 // bitmap
131 if (bitmap && bitmap->IsValid()) {
132 float x = floorf((width - bitmap->Bounds().Width()) / 2.0 + 0.5);
133 float y = floorf((height - bitmap
358 SetIcon(const BBitmap* bitmap) argument
414 BBitmap* bitmap = new(nothrow) BBitmap(quickResBitmap->Bounds(), B_RGB32, true); local
471 BBitmap* bitmap = NULL; local
601 _MakeBitmaps(const BBitmap* bitmap) argument
[all...]
/haiku/src/tests/kits/media/mpeg2_decoder_test/
H A Dmpeg2_decoder_test.cpp111 status_t SaveBitmapAtPathUsingFormat(BBitmap* bitmap, BString* filePath,
269 BBitmap* bitmap = NULL; local
271 bitmap = new BBitmap(imageFrame, kNoFlags, imageColorSpace);
272 if (bitmap == NULL)
273 return bitmap;
275 if (bitmap->InitCheck() < B_OK) {
276 delete bitmap;
280 if (bitmap->IsValid() == false) {
281 delete bitmap;
285 return bitmap;
290 SaveBitmapAtPathUsingFormat(BBitmap* bitmap, BString* filePath, uint32 bitmapStorageFormat) argument
[all...]
/haiku/src/preferences/backgrounds/
H A DImageFilePanel.cpp120 BBitmap* bitmap = BTranslationUtils::GetBitmap(&ref); local
122 if (bitmap != NULL) {
124 if (bitmap->Bounds().Width() > bitmap->Bounds().Height()) {
126 - ((bitmap->Bounds().Height() + 1)
127 / (bitmap->Bounds().Width() + 1)
131 - ((bitmap->Bounds().Width() + 1)
132 / (bitmap->Bounds().Height() + 1)
135 fImageView->SetViewBitmap(bitmap, bitmap
[all...]
/haiku/src/apps/soundrecorder/
H A DDrawingTidbits.h47 void ReplaceColor(BBitmap *bitmap, rgb_color from, rgb_color to);
48 void ReplaceTransparentColor(BBitmap *bitmap, rgb_color with);
/haiku/src/tests/servers/app/painter/
H A DBitmapView.cpp11 BBitmap* bitmap)
13 fBitmap(bitmap)
31 // draw the bitmap with pixel alpha
10 BitmapView(BRect frame, const char* name, BBitmap* bitmap) argument

Completed in 192 milliseconds

1234567891011>>