• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Image loaded/displayed at the wrong size
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image loaded/displayed at the wrong size


  • Subject: Re: Image loaded/displayed at the wrong size
  • From: email@hidden (Henri Hansen)
  • Date: Sat, 15 Feb 2003 22:49:00 +0100

Hi Shawn

Thank you for your fast response. In your first eMail you were asking if
the
file I'm opening is describing the image correctly, to be honest I don't
know,
but I saved the image in PhotoShop, and I assume the people of Adobe know
what
they ar doing :-)

And you are asking me if the "thing" in which I am drawing is only of the
size
of 200 Pixels.

Well I'm drawin in a custon NSImageView which is grouped with an
NSScrollView.
In my code I swap the NSClipView of the NSScrollView by a custon ClipView
in
order to center my custom NSImageView if it is smaller then the
NSScrollView.

The original Size, as created in InterfaceBuilder of the NSImageView is
deffenitly different from what I get from my application.

Further you ask how I'm drawing the picture.

Basicaly I do the same then Mike Beam in his tutorial, I create a NSImage
which
I initiate with the data contained in the file I want to open.

>> I put together a simple application to show what is one possible
>> solution (you could use a scroll view instead, etc.) to the issue, that
>> I think, you are seeing. This is a simple app that doesn't do some of
>> the screen bounds and error checking needed, etc. It is just an example.
>>
>> Simply drop a picture onto the applications window to get it displayed.

Thank you for your time, the application is working fine, but the file
containing the project semms not to be working???
>>
>> Application
>> http://homepage.mac.com/~shawnce/dev/examples/image_draw.app.tgz
>>
>> Source/Project
>> http://homepage.mac.com/~shawnce/dev/examples/image_draw.tgz

Further more, I tested your and my app with the same picture and it seems,
that
your app is cutting off some pixels of the picture ...

greetings Henri
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: IB resizing question
  • Next by Date: Re: Image loaded/displayed at the wrong size
  • Previous by thread: Re: Image loaded/displayed at the wrong size
  • Next by thread: Pixel Drawing Program 3
  • Index(es):
    • Date
    • Thread