Much before Bezout's theorem the following exercise is given:
If $Y$ is a curve of degree $d$ in ${\mathbb{P}}^2$ and if $L$ is a line in ${\mathbb{P}}^2$, $L \neq Y$, show that $(L \cdot Y) = d$. The definition of $(L \cdot Y)$ is given by $(L \cdot Y) = \sum (L \cdot Y)_P$ taken over all points $P \in L \cap Y$, where $(L \cdot Y)_P$ is defined using a suitable affine cover of ${\mathbb{P}}^2$.
Of course the definition $(L \cdot Y)_P$ in an affine space is simply $\ell_{\mathcal{O}_P}({\mathcal{O}_P}/{\langle f, g \rangle})$, where $L = Z(f), Y = Z(g)$. And even it is easy to verify $\ell_{\mathcal{O}_P}({\mathcal{O}_P}/{\langle f, g \rangle}) = {\mathrm{dim}}_k~{\mathcal{O}_P}/{\langle f, g \rangle}$.
The solution can be found here : Problem I.5.4(c) in Hartshorne and to the sources quoted as well.
My question: is the term $(L \cdot Y)_P$ depends on the choice of the affine cover we take?
My perception is "yes" as the equation need not be symmetric towards the dehomogenization taken for the corresponding cover. However, I can't see get a precise counterexample.
Here is another reason why I am asking this: the answer to the exercise begin with the assumption that $(L \cdot Y)_P$ is invariant under global linear change and hence we assume $L = Z(y)$. However, does dehomogenization respect this global linear change?