Delphi

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsDesktop ProgrammingDelphi

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old July 2nd, 2009, 01:44 AM
tajmadhu tajmadhu is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Jul 2009
Posts: 1 tajmadhu User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 15 m 37 sec
Reputation Power: 0
Access Canvas of a DC as a DIB

hi all,

This is Madhu Sudhan Reddy. I am loading the bitmap using TImage into the memory. Let the bitmap size is 1000*1000 and TImage width and height are 500*500. while displaying the image (loaded bitmap) to the TImage some of the bitmap only can appear because of insufficient TImage width and height. Now I want the displayed area (500*500) of the TImage as a DIB. Is there any way to get the canvas pixels as DIB.

My main problem is that, on the image I want to draw some selections (as in photoshop) like rectangles, lines, lasso etc.,. Using the DIB of the image I am changing the image data later I am stretching image to the TIMage and forcing to repaint. Since I directly changed the image data for drawing selections, while "Zooming In" my selections also doubling along with Image, because image actual data only is used to "zoom in" the image.

For every zoom operation (+ or -), first TImage prepares the data to be stretched to the TImage display window from the actual image data. After preparing the data to be stretched and before stretching to the window, if I get this memory as a DIB I can modify this memory according to my selections data(rectangle, line, lasso, etc.). Here we are not changing the actual image memory and we are modifying the stretchable memory. By doing some correlate calculations I write my selections data to the stretchable memory so no doubling of my selections data.

Is there any way to access the stretchable memory as a DIB. And when we can know that the window is going to refresh.

Regards
Madhu Sudhan Reddy

Reply With Quote
Reply

Viewing: Tutorialized ForumsDesktop ProgrammingDelphi > Access Canvas of a DC as a DIB


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap