RasterComp(3U)

πŸ’– RasterComp(3U) πŸ’–

okay bestie, welcome to the InterViews Reference Manual page for RasterComp(3U) β€” this is Unidraw content and it's lowkey iconic, so grab a boba and let's go ✨


🌈 NAME 🌈

RasterComp, RasterView, PSRaster β€” that's the raster component subject, its view, and its PostScript external representation. the whole trio, fr fr 🫢


✨ SYNOPSIS ✨

#include <Unidraw/Components/rastercomp.h>

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so, RasterComp is a GraphicComp that represents a raster image. it uses a RasterRect graphic to store its graphical attributes β€” that's the whole vibe.

RasterView is a GraphicView, and its entire job is displaying the raster image. main character energy honestly.

PSRaster is a PostScriptView, and what it does is externalize the subject's information in PostScript form. it's giving translator. πŸ’…


πŸ‘‘ RASTERCOMP PUBLIC OPERATIONS πŸ‘‘

  • RasterComp(RasterRect* = nil, const char* filename = nil) β€” the constructor, bestie. it takes an optional RasterRect structured graphic that defines the attributes of the raster image. you can also hand it an optional file name to associate the component with a file containing the (copious) image data. yes, copious. that's the actual word. the image data is a lot. 😭
  • RasterRect* GetRasterRect() β€” returns the RasterRect graphic that defines the raster's attributes. and psst β€” GetRaster is simply a more specific form of the GetGraphic operation. iykyk 🧚
  • const char* GetFileName() β€” returns the file name you specified in the constructor, if any. if you didn't give one, well. there isn't one. πŸ™ˆ

🌸 RASTERVIEW PUBLIC OPERATIONS 🌸

  • RasterView(RasterComp* = nil) β€” creates a RasterView, optionally supplying the subject. you can hand it the subject or let it be, your call, no pressure πŸ’–
  • RasterComp* GetRasterComp() β€” returns the subject. that's it. that's the whole operation. slay ✨

⭐ PSRASTER PUBLIC OPERATIONS ⭐

  • PSRaster(RasterComp* = nil) β€” constructs a PostScript external representation of the given subject, if any. give it a subject, get a PostScript rep. iconic behavior πŸ”₯

πŸŽ€ SEE ALSO πŸŽ€

  • GraphicComp(3U)
  • GraphicView(3U)
  • PostScriptView(3U)
  • RasterRect(3U)

go read those too, bestie, they're the supporting cast 🫢


reminder: everything above is exactly as written in the original page β€” same options, same signatures, same defaults. no cap. πŸ’…

and that's a wrap!! this page came from Unidraw, dated 10 August 1991 β€” yeah, it's vintage, it's older than most of us, and it's still serving. periodt. πŸ’œβœ¨