|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - download
Length: 8192 (0x2000) Types: Ada Source Notes: 03_class, FILE, R1k_Segment, e3_tag, package Xlbp_Bitmap, seg_004f4c
└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000 └─ ⟦5a81ac88f⟧ »Space Info Vol 1« └─⟦this⟧
with Xlbt_Arithmetic; use Xlbt_Arithmetic; with Xlbt_Basic; use Xlbt_Basic; with Xlbt_Bitmap; use Xlbt_Bitmap; package Xlbp_Bitmap is ------------------------------------------------------------------------------ -- X Library Bitmaps -- -- Xlbp_Bitmap - Used to create bitmaps and bitmap files. ------------------------------------------------------------------------------ -- Copyright 1989 - 1991 by Rational, Santa Clara, California. -- Copyright 1985 - 1989 by the Massachusetts Institute of Technology -- -- All Rights Reserved. -- -- Permission to use, copy, modify, and distribute this software and its -- documentation for any purpose and without fee is hereby granted, -- provided that the above copyright notice(s) appear in all copies and that -- both that copyright notice(s) and this permission notice appear in -- supporting documentation, and that the names of MIT or Rational not be -- used in advertising or publicity pertaining to distribution of the software -- without specific, written prior permission. -- -- MIT and Rational disclaim all warranties with regard to this software, -- including all implied warranties of merchantability and fitness, in no -- event shall MIT or Rational be liable for any special, indirect or -- consequential damages or any damages whatsoever resulting from loss of use, -- data or profits, whether in an action of contract, negligence or other -- tortious action, arising out of or in connection with the use or performance -- of this software. ------------------------------------------------------------------------------ --\x0c function X_Create_Bitmap_From_Data (Display : X_Display; Drawable : X_Drawable; Data : U_Char_Array; Width : U_Short; Height : U_Short) return X_Pixmap; ------------------------------------------------------------------------------ -- Display - Specifies the display to use. -- Drawable - Specifies the drawable (X_Window, X_Pixmap) to use. -- Data - Specifies the data to use in creating the pixmap. -- Width - Specifies the width of the bitmap. -- Height - Specifies the height of the bitmap. -- -- Creates a pixmap from data available in memory. ------------------------------------------------------------------------------ function X_Create_Pixmap_From_Bitmap_Data (Display : X_Display; Drawable : X_Drawable; Data : U_Char_Array; Width : U_Short; Height : U_Short; Foreground : X_Pixel; Background : X_Pixel; Depth : U_Char) return X_Pixmap; ------------------------------------------------------------------------------ -- Display - Specifies the display to use. -- Drawable - Specifies the drawable (Window, Pixmap) to use. -- Data - Specifies the data to use in creating the pixmap. -- Width - Receives the width of the bitmap read. -- Height - Receives the height of the bitmap read. -- Foreground- Specifies the pixel to use for the foreground color; -- Background- Specifies the pixel to use for the background color; -- Depth - Specifies the depth of the pixmap. -- -- Creates a pixmap of the given depth and then does a bitmap-format -- X_Put_Image of the data into it. ------------------------------------------------------------------------------ function X_Write_Bitmap_File (Display : X_Display; Filename : String; Bitmap : X_Pixmap; Width : U_Short; Height : U_Short; X_Hotspot : S_Short; Y_Hotspot : S_Short) return X_Bitmap_Returns; ------------------------------------------------------------------------------ -- Display - Specifies the display to use. -- Filename - Specifies the name of the file to read. The format of this -- file is operating system dependent. -- Bitmap - Specifies the bitmap ID to be written. -- Width - Specifies the width of the bitmap to be written. -- Height - Specifies the height of the bitmap to be written. -- X_Hotspot - Specifies the hotspot X coordinate. -- Y_Hotspot - Specifies the hotspot Y coordinate. -- -- Writes a bitmap file based upon an existing Pixmap. Returns a success -- status indicating success or else the failure class. ------------------------------------------------------------------------------ procedure X_Read_Bitmap_File (Display : X_Display; Drawable : X_Drawable; Filename : String; Width : out U_Short; Height : out U_Short; Bitmap : out X_Pixmap; X_Hotspot : out S_Short; Y_Hotspot : out S_Short; Status : out X_Bitmap_Returns); ------------------------------------------------------------------------------ -- Display - Specifies the display to use. -- Drawable - Specifies the drawable (Window, Pixmap) to use. -- Filename - Specifies the name of the file to read. The format of this -- file is operating system dependent. -- Width - Receives the width of the bitmap read. -- Height - Receives the height of the bitmap read. -- Bitmap - Receives the bitmap ID that was created. -- X_Hotspot - Receives the hotspot X coordinate. -- Y_Hotspot - Receives the hotspot Y coordinate. -- Status - Receives the success/failure/other status. -- -- Read a bitmap file and create a pixmap of the appropriate size. Use -- X_Free_Pixmap when done with the new pixmap. ------------------------------------------------------------------------------ --\x0c end Xlbp_Bitmap;
nblk1=7 nid=0 hdr6=e [0x00] rec0=19 rec1=00 rec2=01 rec3=052 [0x01] rec0=12 rec1=00 rec2=02 rec3=004 [0x02] rec0=14 rec1=00 rec2=03 rec3=008 [0x03] rec0=12 rec1=00 rec2=04 rec3=044 [0x04] rec0=11 rec1=00 rec2=05 rec3=07a [0x05] rec0=11 rec1=00 rec2=06 rec3=012 [0x06] rec0=09 rec1=00 rec2=07 rec3=000 tail 0x2150095d0819781ca30cb 0x42a00088462063203