Mac Carbon |
Author |
Message |
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Wed Mar 07, 2007 12:35 am Post subject: Graphics & Pictures |
|
|
Draw a image into a window in Carbon
"I´ve read about Quartz but I don´t understand how use createimage
from the pixels and so draw the image. Can you show me a way to do this." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat Mar 31, 2007 2:50 pm Post subject: |
|
|
ADC: Introduction to Quartz Programming Guide for QuickDraw Developers
"The purpose of this document is to help developers replace their QuickDraw code
with Quartz code that achieves equivalent (or more) functionality. It provides
strategies and guidance along with routines that use Quartz to achieve functionality
similar to QuickDraw routines." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Mon Apr 02, 2007 9:06 pm Post subject: |
|
|
CarbonDev: How do I get Interface Builder to display images from my project?
"You don't add the images directly to Interface Builder. You add the images to
your project in Xcode and then IB should detect them and make them available.
You have to add the images to Xcode in a careful way." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Apr 12, 2007 12:08 am Post subject: |
|
|
ADC: Icon Services and Utilities Reference
"Icon Services provides icon data to multiple Mac OS clients, including the Finder,
extensions and applications." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Fri Apr 13, 2007 12:45 am Post subject: |
|
|
ADC: Technical Q&A QD65 - QDFlushPortBuffer
"If you draw into a window and want those changes to appear on the screen
immediately (before the next call to WaitNextEvent) then you need to call
QDFlushPortBuffer to flush the updated portion to the screen."
ADC: Technical Note TN2133 - Coalesced Updates
"Recommendations: ... and in Carbon's HIToolBox use HIViewSetNeedsDisplay
or HIViewSetNeedsDisplayInRegion instead of the immediate HIWindowFlush." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sat Apr 21, 2007 12:34 am Post subject: |
|
|
MacTech: Beyond QuickDraw: Quartz
"This article is a brief introduction to Quartz and will focus on its architecture
and functionality. Where appropriate, this article will also call out various
technical resources that will help you take advantage of what Quartz has to
offer." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Thu May 17, 2007 5:59 pm Post subject: |
|
|
Carbon List: Where to find the flag icons of input menu?
"They are in one of two places, depending on the type of keyboard layout.
For resource keyboards (KCHR, uchr), the flags are in the kcns resource
in the resource file. For XML keyboard layouts (.keylayout), they are icns
files in the same folder as the .keylayout file." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Sun Aug 26, 2007 9:06 pm Post subject: |
|
|
Help required - old (but "canonical") stuff
"The most aggravating thing with the function DrawPicture, is that I've been
unable to draw that image anywhere but on the screen. I would like to be
able to deal with PICT resources, draw them offscreen on some bit images
and then be able to use the fast CopyBits function as I wish." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Thu Jul 10, 2008 7:03 pm Post subject: |
|
|
adc - Converting PICT Data, part of the "Quartz Programming Guide for
QuickDraw Developers"
"The QuickDraw picture (PICT) format is the graphics metafile format in Mac
OS 9 and earlier. A picture contains a recorded sequence of QuickDraw imag-
ing operations and associated data, suitable for later playback to a graphics
device on any platform that supports the PICT format.
In Mac OS X, the Portable Document Format (PDF) is the native metafile and
print-spooling format. PDF provides a convenient, efficient mechanism for
viewing and printing digital content across all platforms and operating systems.
PDF is better suited than the PICT format to serve as a general-purpose meta-
file format for digital documents." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Tue Sep 30, 2008 12:05 am Post subject: |
|
|
adc - Quartz 2D Programming Guide
"Quartz 2D is an advanced, two-dimensional drawing engine accessible from
all Mac OS X application environments outside of the kernel. Quartz 2D is
based on industry standards—PostScript and PDF. Quartz 2D uses ColorSync
for high-quality color management and Apple Type Services (ATS) for font
rendering.
It provides low-level, lightweight 2D rendering with unmatched output fidelity
regardless of display or printing device. Quartz 2D is resolution- and device-
independent; you don’t need to think about the final destination when you
use the Quartz 2D application programming interface (API) for drawing." |
|
Back to top |
|
|
XNote Kapetan
Joined: 16 Jun 2006 Posts: 532
|
Posted: Tue Oct 21, 2008 9:33 pm Post subject: |
|
|
adc - Universal Binary Programming Guidelines, Second Edition - GWorlds
"For best performance, it is generally preferable for you to use a pixel
format that corresponds to the native byte ordering of the system. When
you pass kNativeEndianPixMap in the flags parameter to NewGWorld, the
byte ordering of the pixel format is big-endian on big-endian systems, and
little-endian on little-endian systems." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Fri Jun 26, 2009 11:10 am Post subject: |
|
|
Glenn Howes - Vectored PICT to PDF conversion in your code
"You should not be creating any PICT files, but longtime Mac users might
have a large number of .pict or .pct files lying around, and some (all?) of the
tools Apple provides to open such files and convert them to PDF do a horrid
job of it. This applies only to vectored PICTs, as bitmapped PICTS will look
bad regardless." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Fri Jun 26, 2009 11:26 am Post subject: |
|
|
oreilly.com - A Simple Drawing Sample in Quartz 2D
"The routine QDBeginCGContext and QDEndCGContext gives you a graphics
context for a QuickDraw graphics port. While you can use this capability to
mix Quartz 2D and QuickDraw drawings, one important caveat is that you
should not use QuickDraw drawing commands between the QDBeginCGCon-
text and QDEndCGContext calls." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Jan 19, 2017 11:53 pm Post subject: |
|
|
CarbonList - Carbon & Retina Displays
"How does Retina work out in conjunction with Carbon apps? I've read about
the two modes apps can work in Retina and I'm hoping there will be some
way for a carbon app to get at least some limited hi-def support (e.g. dialogs
with standard HIToolbox controls or drawing into Quartz contexts with double
resolution)." |
|
Back to top |
|
|
delovski
Joined: 14 Jun 2006 Posts: 3524 Location: Zagreb
|
Posted: Thu Aug 24, 2017 5:10 pm Post subject: |
|
|
git - wdl-ol/WDL/IPlug/IGraphicsCarbon.cpp
"IPlug is a simple-to-use C++ framework for developing cross platform audio
plugins and targeting multiple plugin APIs with the same code. ... It can also
produce standalone Windows/OSX audio/midi apps." |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Sat Jan 27, 2018 1:58 am Post subject: |
|
|
mac-help.com - PNG Resource with Alpha Channel?
Code: | bool GetBitmapFromPNGFile(FSSpec* lpszFilename, BitmapInfo *outBitMapInfo)
{
OSStatus theErr = noErr;
bool bRet = false;
if ( !lpszFilename || !outBitMapInfo )
return false;
FInfo theFinfo;
if (FSpGetFInfo(lpszFilename,&theFinfo) != noErr)
//file not exist
return false;
GraphicsImportComponent gi;
theErr = GetGraphicsImporterForFile (lpszFilename,&gi);
if (theErr)
return false;
if (!readBitmapInfo(gi,outBitMapInfo)) {
CloseComponent(gi);
//get bitmaoInfo err
return false;
}
bRet = getBitmapData (gi, outBitMapInfo);
CloseComponent(gi);
return bRet;
}
|
|
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Tue Feb 20, 2018 7:00 pm Post subject: |
|
|
git - amatubu/iconparty
"Paint tool (256 colors) and Icon editor for Mac OS" |
|
Back to top |
|
|
Ike Kapetan
Joined: 17 Jun 2006 Posts: 3156 Location: Europe
|
Posted: Sat Jul 17, 2021 10:25 pm Post subject: |
|
|
git - Public domain image loader
"JPEG baseline & progressive (12 bpc/arithmetic not supported, same as stock IJG lib)
PNG 1/2/4/8/16-bit-per-channel
TGA (not sure what subset, if a subset)
BMP non-1bpp, non-RLE
PSD (composited view only, no extra channels, 8/16 bit-per-channel)
GIF (*comp always reports as 4-channel)
HDR (radiance rgbE format)
PIC (Softimage PIC)
PNM (PPM and PGM binary only)" |
|
Back to top |
|
|
|