Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
erik  
#1 Posted : Tuesday, March 15, 2005 12:45:00 PM(UTC)
erik

Rank: Member

Groups: Member
Joined: 7/29/2004(UTC)
Posts: 24

For the purpose of testing, I did following in ASP:

Code:
Set objBitmap = Server.CreateObject("GraphicsMill.Bitmap")
objBitmap.LoadFromFile Server.MapPath("/images/test.jpg")
objBitmap.Graphics.ColorTreatment = ColorTreatmentColorref
for i=400 to 500
	for j=100 to 200
		objbitmap.data.pixels(i,j)=vbblue
	next
next
objBitmap.SaveToStream Response

But I got a very strange result: Just a number of lines in different colors (none of them are blue) having their x-coordinate left shifted 1 pixel for every line.

Have I misunderstood something?

I would expect to see a solid rectangle filled with blue color.

I have not been able to find examples using the pixels property apart from single coordinate usage.

Edited by user Monday, December 24, 2007 4:04:45 PM(UTC)  | Reason: Not specified

Andrew  
#2 Posted : Tuesday, March 22, 2005 1:15:00 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 876

Thanks: 2 times
Was thanked: 27 time(s) in 27 post(s)
As far as I understand, the update I sent you did help, right?

In fact if you need to draw a rectangle, you should better use objBitmap.Graphics.DrawRectangle method instead which is working much faster and more convenient to use.

Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.