~drgeo-developers/drgeo/trunk

« back to all changes in this revision

Viewing changes to VMs/iPad/source/iOS/vm/OSX/SqViewBitmapConversion.h

  • Committer: Hilaire Fernandes
  • Date: 2012-01-27 21:15:40 UTC
  • Revision ID: hilaire.fernandes@gmail.com-20120127211540-912spf97bhpx6mve
Initial additions

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* SqViewBitmapConversion.h created by marcel on Fri 04-Dec-1998 */
 
2
//  CocoaSqueak
 
3
 
 
4
// John Notes: Waste not want not. 
 
5
 
 
6
/*
 
7
From: Marcel Weiher <marcel.weiher@gmail.com>
 
8
To: johnmci@smalltalkconsulting.com
 
9
In-Reply-To: <BEB4569D-C606-4FF4-9B1B-A95570E38B94@smalltalkconsulting.com>
 
10
Subject: Re: [squeak-dev] Squeak and the iPhone
 
11
References: <998FEB36-B9FC-427D-AA74-8A9F517432AB@smalltalkconsulting.com> <1f426d6e0806110542l4fa971bi50f429dbf9ba0809@mail.gmail.com> <FB804A64-E03C-4B68-B8F1-8FF135227F3B@gmail.com> <4D79AAD3-1CFC-431B-AB6B-7E230B0DC5A7@mac.com> <BEB4569D-C606-4FF4-9B1B-A95570E38B94@smalltalkconsulting.com>
 
12
Message-Id: <CCD6C9FE-483B-4A64-86B9-8D2647E54139@gmail.com>
 
13
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
 
14
Content-Transfer-Encoding: 7bit
 
15
Reply-To: Marcel Weiher <marcel.weiher@gmail.com>,
 
16
The general-purpose Squeak developers list <squeak-dev@lists.squeakfoundation.org>
 
17
Mime-Version: 1.0 (Apple Message framework v924)
 
18
Date: Wed, 18 Jun 2008 12:00:05 -0700
 
19
Cc: The general-purpose Squeak developers list <squeak-dev@lists.squeakfoundation.org>
 
20
X-Mailer: Apple Mail (2.924)
 
21
X-Brightmail-Tracker: AAAAAA==
 
22
 
 
23
The source code has been made available again at
 
24
 
 
25
http://www.metaobject.com/downloads/Squeak/
 
26
...
 
27
In the meantime, you have my express  
 
28
permission to use it under an MIT license.
 
29
 
 
30
*/
 
31
 
 
32
 
 
33
 
 
34
#import "sqSqueakOSXNSView.h"
 
35
#import "BitMapConversionLogicFromX11.h"
 
36
 
 
37
@interface sqSqueakOSXNSView(BitmapConversion)
 
38
 
 
39
-(CGImageRef)extractPixels_1_to_32:(void*)srcBits 
 
40
                                         srcPixelWidth:(int)srcPixelWidth height: (int) height
 
41
                                                          left:(int)left right:(int)right
 
42
                                                           top:(int)top bottom:(int)bottom
 
43
                                                  colorMap: (unsigned int *) colorMap
 
44
                                                tempMemory: (void **) tempMemory;
 
45
 
 
46
-(CGImageRef)extractPixels_2_to_32:(void*)srcBits 
 
47
                                         srcPixelWidth:(int)srcPixelWidth height: (int) height
 
48
                                                          left:(int)left right:(int)right
 
49
                                                           top:(int)top bottom:(int)bottom
 
50
                                                  colorMap: (unsigned int *) colorMap
 
51
                                                tempMemory: (void **) tempMemory;
 
52
 
 
53
-(CGImageRef)extractPixels_4_to_32:(void*)srcBits 
 
54
                                         srcPixelWidth:(int)srcPixelWidth height: (int) height
 
55
                                                          left:(int)left right:(int)right
 
56
                                                           top:(int)top bottom:(int)bottom
 
57
                                                  colorMap: (unsigned int *) colorMap
 
58
                                                tempMemory: (void **) tempMemory;
 
59
 
 
60
 
 
61
-(CGImageRef)extractPixels_8_to_32:(void*)srcBits 
 
62
        srcPixelWidth:(int)srcPixelWidth height: (int) height
 
63
        left:(int)left right:(int)right
 
64
        top:(int)top bottom:(int)bottom
 
65
                                                  colorMap: (unsigned int *) colorMap
 
66
                                                tempMemory: (void **) tempMemory;
 
67
 
 
68
 
 
69
-(CGImageRef)extractPixels_16_to_32:(void*)srcBits
 
70
                srcPixelWidth:(int)srcPixelWidth height: (int) height
 
71
        left:(int)left right:(int)right
 
72
                                                                top:(int)top bottom:(int)bottom
 
73
                                                 tempMemory: (void **) tempMemory;
 
74
 
 
75
-(CGImageRef)computeBitmapFromBitsIndex:(void*)srcBits
 
76
                width:(int)width height:(int)height depth:(int)depth
 
77
                left:(int)left right:(int)right
 
78
                top:(int)top bottom:(int)bottom
 
79
                                                         tempMemory: (void**) tempMemory;
 
80
 
 
81
@end