diff options
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBitmapImageRep.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBitmapImageRep.java | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBitmapImageRep.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBitmapImageRep.java index 7e0261ffc4..487e387577 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBitmapImageRep.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSBitmapImageRep.java @@ -16,7 +16,7 @@ public NSBitmapImageRep() { super(); } -public NSBitmapImageRep(int /*long*/ id) { +public NSBitmapImageRep(long /*int*/ id) { super(id); } @@ -25,61 +25,61 @@ public NSBitmapImageRep(id id) { } public NSData TIFFRepresentation() { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_TIFFRepresentation); + long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_TIFFRepresentation); return result != 0 ? new NSData(result) : null; } -public int /*long*/ bitmapData() { +public long /*int*/ bitmapData() { return OS.objc_msgSend(this.id, OS.sel_bitmapData); } -public int /*long*/ bitmapFormat() { +public long /*int*/ bitmapFormat() { return OS.objc_msgSend(this.id, OS.sel_bitmapFormat); } -public int /*long*/ bitsPerPixel() { +public long /*int*/ bitsPerPixel() { return OS.objc_msgSend(this.id, OS.sel_bitsPerPixel); } -public int /*long*/ bytesPerPlane() { +public long /*int*/ bytesPerPlane() { return OS.objc_msgSend(this.id, OS.sel_bytesPerPlane); } -public int /*long*/ bytesPerRow() { +public long /*int*/ bytesPerRow() { return OS.objc_msgSend(this.id, OS.sel_bytesPerRow); } -public NSColor colorAtX(int /*long*/ x, int /*long*/ y) { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_colorAtX_y_, x, y); +public NSColor colorAtX(long /*int*/ x, long /*int*/ y) { + long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_colorAtX_y_, x, y); return result != 0 ? new NSColor(result) : null; } -public void getBitmapDataPlanes(int[] /*long[]*/ data) { +public void getBitmapDataPlanes(long[] /*int[]*/ data) { OS.objc_msgSend(this.id, OS.sel_getBitmapDataPlanes_, data); } public static id imageRepWithData(NSData data) { - int /*long*/ result = OS.objc_msgSend(OS.class_NSBitmapImageRep, OS.sel_imageRepWithData_, data != null ? data.id : 0); + long /*int*/ result = OS.objc_msgSend(OS.class_NSBitmapImageRep, OS.sel_imageRepWithData_, data != null ? data.id : 0); return result != 0 ? new id(result) : null; } -public NSBitmapImageRep initWithBitmapDataPlanes(int /*long*/ planes, int /*long*/ width, int /*long*/ height, int /*long*/ bps, int /*long*/ spp, boolean alpha, boolean isPlanar, NSString colorSpaceName, int /*long*/ bitmapFormat, int /*long*/ rBytes, int /*long*/ pBits) { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_initWithBitmapDataPlanes_pixelsWide_pixelsHigh_bitsPerSample_samplesPerPixel_hasAlpha_isPlanar_colorSpaceName_bitmapFormat_bytesPerRow_bitsPerPixel_, planes, width, height, bps, spp, alpha, isPlanar, colorSpaceName != null ? colorSpaceName.id : 0, bitmapFormat, rBytes, pBits); +public NSBitmapImageRep initWithBitmapDataPlanes(long /*int*/ planes, long /*int*/ width, long /*int*/ height, long /*int*/ bps, long /*int*/ spp, boolean alpha, boolean isPlanar, NSString colorSpaceName, long /*int*/ bitmapFormat, long /*int*/ rBytes, long /*int*/ pBits) { + long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_initWithBitmapDataPlanes_pixelsWide_pixelsHigh_bitsPerSample_samplesPerPixel_hasAlpha_isPlanar_colorSpaceName_bitmapFormat_bytesPerRow_bitsPerPixel_, planes, width, height, bps, spp, alpha, isPlanar, colorSpaceName != null ? colorSpaceName.id : 0, bitmapFormat, rBytes, pBits); return result == this.id ? this : (result != 0 ? new NSBitmapImageRep(result) : null); } -public NSBitmapImageRep initWithBitmapDataPlanes(int /*long*/ planes, int /*long*/ width, int /*long*/ height, int /*long*/ bps, int /*long*/ spp, boolean alpha, boolean isPlanar, NSString colorSpaceName, int /*long*/ rBytes, int /*long*/ pBits) { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_initWithBitmapDataPlanes_pixelsWide_pixelsHigh_bitsPerSample_samplesPerPixel_hasAlpha_isPlanar_colorSpaceName_bytesPerRow_bitsPerPixel_, planes, width, height, bps, spp, alpha, isPlanar, colorSpaceName != null ? colorSpaceName.id : 0, rBytes, pBits); +public NSBitmapImageRep initWithBitmapDataPlanes(long /*int*/ planes, long /*int*/ width, long /*int*/ height, long /*int*/ bps, long /*int*/ spp, boolean alpha, boolean isPlanar, NSString colorSpaceName, long /*int*/ rBytes, long /*int*/ pBits) { + long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_initWithBitmapDataPlanes_pixelsWide_pixelsHigh_bitsPerSample_samplesPerPixel_hasAlpha_isPlanar_colorSpaceName_bytesPerRow_bitsPerPixel_, planes, width, height, bps, spp, alpha, isPlanar, colorSpaceName != null ? colorSpaceName.id : 0, rBytes, pBits); return result == this.id ? this : (result != 0 ? new NSBitmapImageRep(result) : null); } public NSBitmapImageRep initWithData(NSData data) { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_initWithData_, data != null ? data.id : 0); + long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_initWithData_, data != null ? data.id : 0); return result == this.id ? this : (result != 0 ? new NSBitmapImageRep(result) : null); } public NSBitmapImageRep initWithFocusedViewRect(NSRect rect) { - int /*long*/ result = OS.objc_msgSend(this.id, OS.sel_initWithFocusedViewRect_, rect); + long /*int*/ result = OS.objc_msgSend(this.id, OS.sel_initWithFocusedViewRect_, rect); return result == this.id ? this : (result != 0 ? new NSBitmapImageRep(result) : null); } @@ -87,11 +87,11 @@ public boolean isPlanar() { return OS.objc_msgSend_bool(this.id, OS.sel_isPlanar); } -public int /*long*/ numberOfPlanes() { +public long /*int*/ numberOfPlanes() { return OS.objc_msgSend(this.id, OS.sel_numberOfPlanes); } -public int /*long*/ samplesPerPixel() { +public long /*int*/ samplesPerPixel() { return OS.objc_msgSend(this.id, OS.sel_samplesPerPixel); } |