BBC BASIC for Windows
« A quick way to sample pixels in Windows 7? »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:15pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1 2  Notify Send Topic Print
 hotthread  Author  Topic: A quick way to sample pixels in Windows 7?  (Read 4041 times)
sbracken
New Member
Image


member is offline

Avatar




PM


Posts: 19
xx Re: A quick way to sample pixels in Windows 7?
« Reply #10 on: Mar 11th, 2014, 5:24pm »

Thanks for the correction. I tried to find LBLIB to better understand the translation, but all my searching came up blank. It is not in the Files area of the Yahoo group, for example, although LBprompt.tpl is.

Although it is not relevant for my program, I was curious about another aspect of the translation: Zoom$(15) is dimensioned by a call to PROC_dim1d$ rather than a DIM statement. Is there another BB4W/LB difference here?

Simon
User IP Logged

admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: A quick way to sample pixels in Windows 7?
« Reply #11 on: Mar 11th, 2014, 5:59pm »

on Mar 11th, 2014, 5:24pm, sbracken wrote:
I tried to find LBLIB to better understand the translation, but all my searching came up blank. It is not in the Files area of the Yahoo group

It is in the Files area of the LBB Yahoo group, but it's called LBLIB.BBCC (note the unusual extension):

https://groups.yahoo.com/neo/groups/lbb/files

But since it's a 'crunched' library it's hard to read and I wouldn't necessarily have expected you to look at it. I probably should have drawn your attention to the fact that you would need to use @memhdc% as the 'destination' DC. It's the old problem of not knowing what you don't know!

Quote:
Is there another BB4W/LB difference here?

Not in that particular program, no; if you were to trace through PROC_dim1d$ you would find that in fact it just does a conventional DIM.

The issue arises if a program DIMs (or REDIMs; in LB they are synonymous) that same array again. In BBC BASIC that would simply give rise to a 'Bad DIM' error so the procedure in LBLIB checks to see if the array was previously defined and if so avoids generating the error.

Richard.
User IP Logged

sbracken
New Member
Image


member is offline

Avatar




PM


Posts: 19
xx Re: A quick way to sample pixels in Windows 7?
« Reply #12 on: Mar 11th, 2014, 7:49pm »

on Mar 11th, 2014, 5:59pm, Richard Russell wrote:
It's the old problem of not knowing what you don't know!

Indeed, I often don't know what I don't know!

Thanks again for the help. Now to update the full version of my program to work with StretchBlt...

Simon
User IP Logged

RNBW
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 19
xx Re: A quick way to sample pixels in Windows 7?
« Reply #13 on: Jan 7th, 2015, 4:21pm »

I've tried finding LBLIB.BBCC in the files area and I can't find it either. It might be a mystery to me, but I'd like to have a look at it.
User IP Logged

rtr2
Guest
xx Re: A quick way to sample pixels in Windows 7?
« Reply #14 on: Jan 7th, 2015, 5:18pm »

on Jan 7th, 2015, 4:21pm, RNBW wrote:
I've tried finding LBLIB.BBCC in the files area and I can't find it either.

I'm mystified by that. I just clicked on the link I published in my earlier reply, and there was LBLIB.bbcc as the very first file listed!

Of course you'll need to be a member of that group before you can see the contents of its Files area; is it possible you neglected to join the group before looking there?

Richard.
User IP Logged

RNBW
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 19
xx Re: A quick way to sample pixels in Windows 7?
« Reply #15 on: Jan 12th, 2015, 4:57pm »

Hi Richard

I've gone back to the link and it does say that I have to be a member to access the LBB area. I can get into the BB4W files area. Do I need to have a separate membership for the LBB area? If so, how do I go about it?

Regards
Ray
User IP Logged

rtr2
Guest
xx Re: A quick way to sample pixels in Windows 7?
« Reply #16 on: Jan 12th, 2015, 5:34pm »

on Jan 12th, 2015, 4:57pm, RNBW wrote:
Do I need to have a separate membership for the LBB area? If so, how do I go about it?

It's not an "LBB area", it's a completely different Yahoo group! You must join, just as you needed to join the BB4W group before you could access the files there. I don't know exactly what the process is, subsequent to the introduction of the awful Neo interface, but it should hopefully be obvious.

Richard.
User IP Logged

RNBW
New Member
Image


member is offline

Avatar




PM

Gender: Male
Posts: 19
xx Re: A quick way to sample pixels in Windows 7?
« Reply #17 on: Jan 12th, 2015, 9:46pm »

Richard
Thanks, I've found out how to join and I've submitted my application for membership to the LBB group. Awaiting a response.
Regards
Ray
User IP Logged

rtr2
Guest
xx Re: A quick way to sample pixels in Windows 7?
« Reply #18 on: Jan 31st, 2015, 09:36am »

on Mar 11th, 2014, 5:59pm, admin wrote:
It is in the Files area of the LBB Yahoo group, but it's called LBLIB.BBCC (note the unusual extension)

For those who may be using LBLIB, or may have downloaded it just for interest, please note that it has been updated to version 2.86:

https://groups.yahoo.com/neo/groups/lbb/files

You must be a member of that group to access its Files area.

Richard.
« Last Edit: Jan 31st, 2015, 12:56pm by rtr2 » User IP Logged

Pages: 1 2  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls