Igor Delovski Board Forum Index Igor Delovski Board
My Own Personal Slashdot!
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Graphics & Pictures

 
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Carbon
Mac Carbon  
Author Message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Wed Mar 07, 2007 12:35 am    Post subject: Graphics & Pictures Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Mar 31, 2007 2:50 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Mon Apr 02, 2007 9:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Apr 12, 2007 12:08 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Fri Apr 13, 2007 12:45 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sat Apr 21, 2007 12:34 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3156
Location: Europe

PostPosted: Thu May 17, 2007 5:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Sun Aug 26, 2007 9:06 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3156
Location: Europe

PostPosted: Thu Jul 10, 2008 7:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Tue Sep 30, 2008 12:05 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
XNote
Kapetan


Joined: 16 Jun 2006
Posts: 532

PostPosted: Tue Oct 21, 2008 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3156
Location: Europe

PostPosted: Fri Jun 26, 2009 11:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3156
Location: Europe

PostPosted: Fri Jun 26, 2009 11:26 am    Post subject: Reply with quote

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
View user's profile Send private message
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Jan 19, 2017 11:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
delovski



Joined: 14 Jun 2006
Posts: 3524
Location: Zagreb

PostPosted: Thu Aug 24, 2017 5:10 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3156
Location: Europe

PostPosted: Sat Jan 27, 2018 12:14 am    Post subject: Reply with quote

MacTech - Using QuickTime's Graphics Importers and Exporters

"In this article, we'll see how to open an image file, read the image from it, and
draw that image in a window on the screen."
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3156
Location: Europe

PostPosted: Sat Jan 27, 2018 1:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3156
Location: Europe

PostPosted: Tue Feb 20, 2018 7:00 pm    Post subject: Reply with quote

git - amatubu/iconparty

"Paint tool (256 colors) and Icon editor for Mac OS"
Back to top
View user's profile Send private message
Ike
Kapetan


Joined: 17 Jun 2006
Posts: 3156
Location: Europe

PostPosted: Sat Jul 17, 2021 10:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Igor Delovski Board Forum Index -> Mac Carbon All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Delovski.hr
Powered by php-B.B. © 2001, 2005 php-B.B. Group